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

Example

1
; Load float value
2
.orb $(0x1)
3
.val @float_t(12.3)
4
.pull &(0x4)
5
6
; decrement 12.3 -> 11.3
7
.dec &(0x4)
Copied!
1
; load int
2
.ldx &(0x1) <| $(0x22)
3
; decrement value 0x22 -> 0x21
4
.dec &(0x1)
Copied!
OpCode
0xB2

See also

Last modified 1yr ago
Copy link