Table 6-4. Parity/Overflow Flag Actions
Group
Instruction
Action
8-Bit
LD A,I
Contents of IFF2
Load Group
LD A,R
LDI,LDD,
Block
CPI,CPIR,
Set if BC - 10, otherwise reset
Transfer and
h G
CPD,CPDR
Searc
roup
LDIR,LDDR
Reset
ADD A,S
ADC A,S
Set if overflow, otherwise reset
SUBS
SBC A,S
AND S
8-Bit
OR S
Set if parity even, otherwise reset
Arithmetic
XOR S
Group
CP S
Set if overflow, otherwise reset
Set if operand was 7FH before increment,
INC S
otherwise reset
Set if operand was 80H before increment,
DEC S
otherwise reset
General -
DAA
Set if (A) parity even, otherwise reset
Purpose
Set if (A) was 80H before negate , other-
Arithmetic
NEG
Group
wise reset
16-Bit
Arithmetic
ADC HL,SS
Set if overflow, otherwise reset
SBC HL,SS
Group
RLC S
RL S
RRC S
Rotate and
RR S
SLA S
Set if parity even , otherwise reset
Shift Group
SRA S
SRL S
RLD S
RRD S
Bit Test
BIT B,S
Unknown
Group
IN R,(C)
Set if parity even, otherwise reset
Input and
INI,INIR,
Output Group
IND,INDR,
Unknown
OUTI,OTIR,
OUTD,OTDR
99
Need help?
Do you have a question about the Z80 and is the answer not in the manual?
Questions and answers