Skip to content

Commit

Permalink
Clarify padding behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed Oct 7, 2024
1 parent 9c122c8 commit 6aa02ac
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 @@ -1804,7 +1804,7 @@ Panic if:
| Operation | `code = match imm { 0 => contract_code(mem[$rA,32]), 1 => blob_payload(mem[$rA,32]), 2 => mem[$ra, ..] }; MEM[$ssp, $rC] = code[$rB, $rC];` |
| Syntax | `ldc $rA, $rB, $rC, imm` |
| Encoding | `0x00 rA rB rC imm` |
| Notes | If `$rC` is greater than the code size, zero bytes are filled in. |
| Notes | If `$rC` is greater than the code size, zero bytes are filled in. Length final is always padded to word boundary. |

Object type from `imm` determines the source for loading as follows:

Expand Down

0 comments on commit 6aa02ac

Please sign in to comment.