zlf645e0s2832g ZiLOG Semiconductor, zlf645e0s2832g Datasheet - Page 164

no-image

zlf645e0s2832g

Manufacturer Part Number
zlf645e0s2832g
Description
Crimzon Infrared Microcontrollers Zlf645 Series Flash Mcus With Learning Amplification
Manufacturer
ZiLOG Semiconductor
Datasheet
PS026407-0408
Table 78. Condition Codes
Bit Position
[3]
[2]
[1]
[0]
Binary
0000
0001
0010
0011
0100
0101
0110
0110
Condition Codes
Hex
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).
binary condition codes can be created using more than one assembly code mnemonic. The
result of the flag test operation determines if the conditional jump executes.
0
1
2
3
4
5
6
6
Value
0
1
0
1
0
1
0
1
Assembly
Mnemonic
F
LT
LE
ULE
OV
Ml
Z
EQ
Description
Decimal Adjust Flag (D)
Used for binary-coded decimal (BCD) arithmetic.
Flag Clear
Flag Set
Half Carry Flag (H)
Set when a carry out of or borrow into bit 3 of an arithmetic operation occurs.
Flag Clear
Flag Set
User Flag 1 (F1)
Available to software for use as a general-purpose bit.
Bit Clear
Bit Set
User Flag 2 (F2)
Available to software for use as a general-purpose bit.
Bit Clear
Bit Set
Definition
Always False
Less than
Less than or Equal
Unsigned Less than or Equal
Overflow
Minus
Zero
Equal
Table 78
summarizes the condition codes. Some
ZLF645 Series Flash MCUs
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
Product Specification
Condition Codes
156

Related parts for zlf645e0s2832g