Skip to content

Remove non-immediate jumps#52

Merged
adlerjohn merged 2 commits into
masterfrom
adlerjohn-jump_code_pointer
Feb 10, 2021
Merged

Remove non-immediate jumps#52
adlerjohn merged 2 commits into
masterfrom
adlerjohn-jump_code_pointer

Conversation

@adlerjohn
Copy link
Copy Markdown
Contributor

  • Add an "instruction start" reserved register, $is. The more obvious name "code pointer" is probably a bad idea because $cp is too close to $pc and hard to read accurately when looking at assembly.
  • Use the instruction start implicitly for all jumps and forbid non-immediate jumps for safety.

@adlerjohn adlerjohn added the enhancement New feature or request label Feb 9, 2021
@adlerjohn adlerjohn self-assigned this Feb 9, 2021
@adlerjohn adlerjohn requested a review from sezna February 9, 2021 22:30
@adlerjohn adlerjohn merged commit cee8651 into master Feb 10, 2021
@adlerjohn adlerjohn deleted the adlerjohn-jump_code_pointer branch February 10, 2021 01:38
@adlerjohn adlerjohn added the comp:FVM Component: FuelVM label Feb 18, 2021
mukeshranaji added a commit to mukeshranaji/fuel-specs that referenced this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:FVM Component: FuelVM enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants