Zilog Z08470 User Manual
Page 250

Z80 Instruction Set
UM008007-0715
238
Z80 CPU
User Manual
RRD
Operation
Op Code
RRD
Operands
Description
The contents of the low-order four bits (bits 3, 2, 1, and 0) of memory location (HL) are
copied to the low-order four bits of the Accumulator (Register A). The previous contents
of the low-order four bits of the Accumulator are copied to the high-order four bits (7, 6, 5,
and 4) of location (HL); and the previous contents of the high-order four bits of (HL) are
copied to the low-order four bits of (HL). The contents of the high-order bits of the Accu-
mulator are unaffected.
(HL) refers to the memory location specified by the contents of the HL register pair.
Condition Bits Affected
S is set if the Accumulator is negative after an operation; otherwise, it is reset.
Z is set if the Accumulator is 0 after an operation; otherwise, it is reset.
H is reset.
M Cycles
T States
4 MHz E.T.
5
18 (4, 4, 3, 4, 3)
4.50
4
7
0
3
4
7
0
3
A
(HL)
1
1
0
0
1
1
1
1
ED
0
1
0
1
1
1
1
0
67
Note: