user manual

A-69
INSTRUCTION SET REFERENCE
Example: The instruction
JG LABEL1
causes program execution to continue at label LABEL1 if the Z flag and the CY flag are both
clear.
Binary Mode Source Mode
Not Taken Taken Not Taken Taken
Bytes: 33 22
States: 25 14
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation: JG
(PC) (PC) + 2
IF (Z) = 0 AND (CY) = 0
THEN (PC) (PC) + rel
JLE rel
Function: Jump if less than or equal
Description: If the Z flag or the CY flag is set, branch to the address specified; otherwise proceed with the
next instruction. The branch destination is computed by adding the signed relative
displacement in the second instruction byte to the PC, after incrementing the PC twice.
Flags:
Example: The instruction
JLE LABEL1
causes program execution to continue at LABEL1 if the Z flag or the CY flag is set.
Binary Mode Source Mode
Not Taken Taken Not Taken Taken
Bytes: 33 22
States: 25 14
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
[Encoding] 0 0 1 1 1 0 0 0 rel. addr
CY AC OV N Z
——— ! !
[Encoding] 0 0 1 0 1 0 0 0 rel. addr