Z8FMC16100 Series Flash MCU
Product Specification
281
Condition Codes
The C, Z, S, and V flags control the operation of the conditional jump (JP cc and JR cc)
instructions. Sixteen frequently-useful functions of the flag settings are encoded in a 4-bit
field called the condition code (cc), which forms Bits 7:4 of the conditional jump instruc-
tions. Table 156 summarizes the condition codes. Some binary condition codes can be cre-
ated using more than one assembly code mnemonic. The result of the flag test operation
decides whether the conditional jump is executed.
Table 156. Condition Codes
Assembly
Binary
0000
0001
0010
0011
0100
0101
0110
0110
0111
0111
1000
1001
1010
1011
1100
1101
1110
1110
1111
1111
Hex
0
Mnemonic
Definition
Flag Test Operation
—
F
Always False
Less Than
1
LT
LE
ULE
OV
Ml
(S XOR V) = 1
(Z or (S XOR V)) = 1
2
Less Than or Equal
3
Unsigned Less Than or Equal (C OR Z) = 1
4
Overflow
Minus
V = 1
5
S = 1
6
Z
Zero
Z = 1
6
EQ
C
Equal
Z = 1
7
Carry
C = 1
7
ULT
Unsigned Less Than
C = 1
8
T (or blank) Always True
—
9
GE
Greater Than or Equal
(S XOR V) = 0
A
B
C
D
E
E
F
F
GT
Greater Than
Unsigned Greater Than
No Overflow
Plus
(Z OR (S XOR V)) = 0
UGT
NOV
PL
(C = 0 AND Z = 0) = 1
V = 0
S = 0
Z = 0
Z = 0
C = 0
C = 0
NZ
Non-Zero
NE
Not Equal
NC
No Carry
UGE
Unsigned Greater Than or
Equal
PS024604-1005
P R E L I M I N A R Y
eZ8 CPU Instruction Set