Z08617 NMOS Z8
®
8-B
IT
MCU
K
EYBOARD
C
ONTROLLER
20
CONDITION CODES
Value
Mnemonic
Meaning
Flags Set
1 0 0 0
—
Always True
—
0 1 1 1
C
Carry
C = 1
1 1 1 1
NC
No Carry
C = 0
0 1 1 0
Z
Zero
Z = 1
1 1 1 0
NZ
Not Zero
Z = 0
1 1 0 1
PL
Plus
S = 0
0 1 0 1
MI
Minus
S = 1
0 1 0 0
OV
Overflow
V = 1
1 1 0 0
NOV
No Overflow
V = 0
0 1 1 0
EQ
Equal
Z = 1
1 1 1 0
NE
Not Equal
Z = 0
1 0 0 1
GE
Greater Than or Equal
(S XOR V) = 0
0 0 0 1
L T
Less than
(S XOR V) = 1
1 0 1 0
GT
Greater Than
[Z OR (S XOR V)] = 0
0 0 1 0
LE
Less Than or Equal
[Z OR (S XOR V)] = 1
1 1 1 1
UGE
Unsigned Greater Than or Equal
C = 0
0 1 1 1
ULT
Unsigned Less Than
C = 1
1 0 1 1
UGT
Unsigned Greater Than
(C = 0 AND Z = 0) = 1
0 0 1 1
ULE
Unsigned Less Than or Equal
(C OR Z) = 1
0 0 0 0
F
Never True (Always False)
—