updated assembled binary format, thanks tty!
This commit is contained in:
parent
8bf97a852e
commit
e02e4bd867
|
@ -59,13 +59,13 @@ final state of the stack:
|
|||
in the previous section we said that this was equivalent to using the LIT instruction instead of the literal hex rune (#)
|
||||
|
||||
```
|
||||
LIT 02 LIT 30 ADD ( assembled code: 01 02 01 30 18 )
|
||||
LIT 02 LIT 30 ADD ( assembled code: 80 02 80 30 18 )
|
||||
```
|
||||
|
||||
now, if we add the '2' suffix to the LIT instruction, we could write instead:
|
||||
|
||||
```
|
||||
LIT2 02 30 ADD ( assembled code: 21 02 30 18 )
|
||||
LIT2 02 30 ADD ( assembled code: a0 02 30 18 )
|
||||
```
|
||||
|
||||
instead of pushing one byte, LIT2 is pushing the next short (two bytes) in memory, down onto the stack.
|
||||
|
|
Loading…
Reference in New Issue