Download Print this page

ZiLOG Z80 Handbook page 93

Hide thumbs Also See for Z80:

Advertisement

Table 6-5. H and N Flag Actions
Group
Instruction
H Action
N Action
8-Bit Load
LD A,I
Group
LD A,R
Reset
Reset
Block
LDI,LDIR,
Transfer
LDD,LDDR
and Search
CPI,CPIR,CPD,
Set if no borrow from bit 4,
Group p
CPDR
otherwise reset
ADD A,S
Set if no carry from bit 3, other-
ADC A,S
wise reset
Reset
SUB S
Set if no borrow from bit 4,
SBC A,S
otherwise reset
Set
AND S
8-Bit
OR S
Set
Reset
Arithmetic
XOR S
Group
Set if no borrow from bit 4,
CPS
otherwise reset
Set
Set if carry from bit 3, otherwise
INC S
Reset
reset
Set if no borrow from bit 4,
DEC S
otherwise reset
Set
DAA
Indeterminate
Not affected
l
G
CPL
Set
Set
enera -
Purpose
Set if no borrow from bit 4,
Arithmetic
NEG
otherwise reset
Set
Group
CCF
Not affected
Reset
SCF
Reset
Set
ADD HL,SS
Set if carry out of bit 11, other-
ADC HL,SS
wise reset
Reset
16-Bit
Arithmetic
SBC HL SS
Set if no borrow from bit 12,
Set
Group
,
otherwise reset
ADD IX,PP
Set if carry out of bit 11, other-
ADD IY, RR
wise reset
Reset
RLCA
RLA
RRCA
RRA
RLC S
Rotate
RL S
and Shift
RRC S
Reset
Reset
Group
RR S
SLA S
SRA S
SRL S
RLD
RRD
100

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80 and is the answer not in the manual?

Questions and answers