8XC251SA, SB, SP, SQ USER’S MANUAL
A-68
Operation: JC
(PC) (PC) + 2
IF (CY) = 1
THEN
(PC) (PC) + rel
JE rel
Function: Jump if equal
Description: If the Z 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 Z flag is set. After executing the instruction
JE LABEL1
program execution continues at label LABEL1.
Binary Mode Source Mode
Not Taken Taken Not Taken Taken
Bytes: 3 3 2 2
States: 25 14
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation: JE
(PC) (PC) + 2
IF (Z) = 1
THEN (PC) (PC) + rel
JG rel
Function: Jump if greater than
Description: If the Z flag and the CY flag are both clear, 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:
CY AC OV N Z
———— !
[Encoding] 0 1 1 0 1 0 0 0 rel. addr
CY AC OV N Z
——— ! —