Skip to content

Commit

Permalink
Fix incorrect order of $sp and $ssp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed Jun 24, 2024
1 parent d572ede commit da29890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fuel-vm/instruction-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,7 @@ Panic if:
- `$rB + 32` overflows or `> VM_MAX_RAM`
- Blob ID `MEM[$rB, 32]` is not found

Increment `$fp->codesize` and `$sp` by `$rD` padded to word alignment. Then set `$sp` to `$ssp`.
Increment `$fp->codesize` and `$sp` by `$rD` padded to word alignment. Then set `$ssp` to `$sp`.

This instruction can be used to extend current script or contract from a blob. Previous stack contents are frozen, and will be treated as code by the VM.

Expand Down

0 comments on commit da29890

Please sign in to comment.