English
Language : 

Z8F4822AR020SG Datasheet, PDF (249/323 Pages) Zilog, Inc. – High Performance 8-Bit Microcontrollers
Z8 Encore! XP® F64xx Series
Product Specification
229
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. The condition codes are summarized in Table 127. Some binary condition codes can
be created using more than one assembly code mnemonic. The result of the flag test oper-
ation decides if the conditional jump is executed.
Table 127. Condition Codes
Binary Hex
0000
0
0001
1
0010
2
0011
3
0100
4
0101
5
0110
6
0110
6
0111
7
0111
7
1000
8
1001
9
1010
A
1011
B
1100
C
1101
D
1110
E
1110
E
1111
F
1111
F
Assembly
Mnemonic
F
LT
LE
ULE
OV
Ml
Z
EQ
C
ULT
T (or blank)
GE
GT
UGT
NOV
PL
NZ
NE
NC
UGE
Definition
Always False
Less Than
Less Than or Equal
Unsigned Less Than or Equal
Overflow
Minus
Zero
Equal
Carry
Unsigned Less Than
Always True
Greater Than or Equal
Greater Than
Unsigned Greater Than
No Overflow
Plus
Non-Zero
Not Equal
No Carry
Unsigned Greater Than or Equal
Flag Test Operation
–
(S XOR V) = 1
(Z OR (S XOR V)) = 1
(C OR Z) = 1
V=1
S=1
Z=1
Z=1
C=1
C=1
–
(S XOR V) = 0
(Z OR (S XOR V)) = 0
(C = 0 AND Z = 0) = 1
V=0
S=0
Z=0
Z=0
C=0
C=0
PS019924-0113
PRELIMINARY
eZ8 CPU Instruction Notation