Ancient VM
Search…
.inc
Increment Value
Note: float mode support
1
.inc &(0x2)
Copied!

Example

1
; Load float value
2
.orb $(0x1)
3
.val @float_t(12.3)
4
.pull &(0x4)
5
6
; increment 12.3 -> 13.3
7
.inc &(0x4)
Copied!
1
; load int
2
.ldx &(0x1) <| $(0x22)
3
; increment value 0x22 -> 0x23
4
.inc &(0x1)
Copied!
OpCode
0xB1

See also

Last modified 1yr ago
Copy link