8XC251SA, SB, SP, SQ USER'S MANUAL
JSLE rel
Function:
Jump if less than or equal (signed)
Description:
If the Z flag is set OR if the the N flag and the OV flag have different values, 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
—
Example:
The instruction
JSLE LABEL1
causes program execution to continue at LABEL1 if the Z flag is set OR if the N flag and the
OV flag have different values.
Not Taken
Bytes:
3
States:
2
[Encoding]
0 0 0 0
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
JSLE
(PC) ← (PC) + 2
IF {(Z) = 1 OR [(N) ≠ (OV)]}
JZ rel
Function:
Jump if accumulator zero
Description:
If all bits of the accumulator are clear (zero), 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. The accumulator is not modified.
Flags:
CY
—
A-76
AC
—
Binary Mode
Taken
3
5
1 0 0 0
THEN (PC) ← (PC) + rel
AC
—
OV
N
!
!
Source Mode
Not Taken
Taken
2
1
rel. addr
OV
N
—
—
Z
!
2
4
Z
!