Ancient VM
Search…
.jump.x
Jump to point if [cell] has TRUE
Note: This instruction checks runtime type in cell memory
Required type: u2 (boolean)
1
.jump.x &(point) ~- &(targetCell)
Copied!

Examples

1
; ...
2
; set ref into [0xF] cell
3
.ref.t &(0xF2)
4
; ...
5
; Checks memory values in cells [0x0],[0x0]
6
; and puts result (boolean) in [0x2] cell
7
.ceq &(0x2) <| &(0x0) &(0x0)
8
; goto [0xF] if [0x2] has TRUE
9
.jump.x &(0xF2) ~- &(0x2)
Copied!
OpCode
0x09

See also

Last modified 1yr ago
Copy link