English
Language : 

Z8FMC16100 Datasheet, PDF (303/402 Pages) Zilog, Inc. – Z8 Encore-R Motor Control Flash MCUs
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 Hex Mnemonic Definition
Flag Test Operation
0000 0
F
Always False
—
0001 1
LT
Less Than
(S XOR V) = 1
0010 2
LE
Less Than or Equal
(Z or (S XOR V)) = 1
0011 3
ULE
Unsigned Less Than or Equal (C OR Z) = 1
0100 4
OV
Overflow
V=1
0101 5
Ml
Minus
S=1
0110 6
Z
Zero
Z=1
0110 6
EQ
Equal
Z=1
0111 7
C
Carry
C=1
0111 7
ULT
Unsigned Less Than
C=1
1000 8
T (or blank) Always True
—
1001 9
GE
Greater Than or Equal
(S XOR V) = 0
1010 A
GT
Greater Than
(Z OR (S XOR V)) = 0
1011 B
UGT
Unsigned Greater Than
(C = 0 AND Z = 0) = 1
1100 C
NOV
No Overflow
V=0
1101 D
PL
Plus
S=0
1110 E
NZ
Non-Zero
Z=0
1110 E
NE
Not Equal
Z=0
1111 F
NC
No Carry
C=0
1111 F
UGE
Unsigned Greater Than or C = 0
Equal
PS024604-1005
PRELIMINARY
eZ8 CPU Instruction Set