Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

public-vm(ts): add type casting operation #3987

Closed
Tracked by #3313
Maddiaa0 opened this issue Jan 12, 2024 · 0 comments
Closed
Tracked by #3313

public-vm(ts): add type casting operation #3987

Maddiaa0 opened this issue Jan 12, 2024 · 0 comments
Labels
C-avm Component: AVM related tickets (aka public VM)

Comments

@Maddiaa0
Copy link
Member

Maddiaa0 commented Jan 12, 2024

After tagged memory has been implemented, in the simulator, we must implement the CAST opcode to cast a type from one memory region to another.

We must:

  • range constrain the size of the operand fits the new location size
  • revert / panic if cast is not possible
  • move the cast value into the appropiate memory region

Dependencies

Links

@github-project-automation github-project-automation bot moved this to Todo in A3 Jan 12, 2024
@Maddiaa0 Maddiaa0 added the C-avm Component: AVM related tickets (aka public VM) label Jan 18, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-avm Component: AVM related tickets (aka public VM)
Projects
Archived in project
Development

No branches or pull requests

2 participants