JZ
This instruction jumps only if ZF=1
. The flags are not affected.
If a jump occurs, it will copy the jump address into IP
.
Usage
vonsim
JZ label
label must be a label that points to an instruction.
Example
vonsim
org 2000h
jump: push ax
; --- etc ---
jz jump ; Valid
jz 2000h ; Invalid, must be a label
hlt
end
Encoding
00100010
, addr-low, addr-high