Download Print this page

ZiLOG Z80 Handbook page 70

Hide thumbs Also See for Z80:

Advertisement

INC D
INC D
INSTRUCTION
INC (HL)
INSTRUCTION
0 0 10 1 0 1 0 0
SPECIFIES
D
INC (HL)
t o 0 1 1 0 1 0 0
HL
1H, ITS
ALU
(INCREMENT)
8 BITS
ALU
(INCREMENT)
MEMORY
OPERAND
Fig. 5-11. INC and DEC instruction examples.
DI and El disable or enable external (non-NMI) interrupts by
resetting or setting the interrupt enable flip-flops IFF1 and IFF2.
IM 0, IM 1, and IM 2 set interrupt modes 0, 1, or 2. The meaning
of the various modes is discussed in Chapter 7.
CPL
(A) BEFORE INSTRUCTION
1
0 1 1 0 1 1 0 (-74)
Os- is,
1s--Os
(A) AFTER INSTRUCTION
0
1 0 0 1 0 0 1 (+73)
NEG
(A) BEFORE INSTRUCTION
1 0 1 1 0 1 1 0 (-74)
a s, -1s, 1 1s - as
0
1 0 0 1 0 0 1
+ 1
(A) AFTER INSTRUCTION
1 0
1 0 0 1 0 1 0 (+74)
Fig. 5-12. CPL and NEG instruction examples.
73

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

Subscribe to Our Youtube Channel