English
Language : 

Z86L972 Datasheet, PDF (59/91 Pages) Zilog, Inc. – Low-Voltage Microcontrollers
Z86L972/Z86L973/Z86L974
Low-Voltage Microcontrollers
52
Program Control Flag Register (Flags)
The Program Control Flag register (see Table 15) reflects the current status of the
Z8 as shown in Table 15. The FLAGS register contains six bits of status informa-
tion that are set or cleared by CPU operations. Four of the bits (C, V, Z, and S) can
be tested for use with conditional jump instructions. Two flags (H and D) cannot be
tested and are used for BCD arithmetic. The two remaining flags in the register
(F1 and F2) are available to you, but they must be set or cleared by instructions
and are not usable with conditional jumps.
Table 15. FLAGS Register [Group/Bank F0h, Register C (R252)]
Bit
7
6
5
4
Bit/Field C
Z
S
V
R/W
R/W R/W R/W R/W
Reset
X
X
X
X
R = Read, W = Write, X = Indeterminate
Bit
Position
Bit/Field
R/W Value
7_______ Carry Flag (C) R/W 1
_6______ Zero Flag (Z) R/W 1
__5_____ Sign Flag (S) R/W X
___4____ Overflow
Flag (V)
R/W 1
3
2
1
0
D
H
F2
F1
R/W R/W R/W R/W
X
X
X
X
Description
Indicates the “carry out” of bit 7
position of a register being used as
an accumulator; on Rotate and Shift
instructions this bit contains the most
recent value shifted out of the
specified register
Indicates that the contents of an
accumulator register is zero following
an arithmetic or logical operation
Stores the value of the most
significant bit of a result following an
arithmetic, logical, Rotate, or Shift
operation; in arithmetic operations on
signed numbers, a positive number is
identified by a 0, and a negative
number is identified by a 1
For signed arithmetic, Rotate, and
Shift operations, the flag is set to 1
when the result is greater than the
maximum possible number (>127) or
less than the minimum possible
number (<-128) that can be
represented in two’s complement
form; following logical operations, this
flag is set to 0
PS010504-1002
PRELIMINARY