Instruction Reference Manual 15
Description
ThedataintheregisterpairHLissummedwiththeCarryFlagandwiththedatainwordregisterss (any of
the word registers BC, DE, HL, or SP). The result is stored in HL.
Description
The data in the Accumulator is summed with the data in the memory location whose address is:
• heldinwordregisterHL, or
• the sum of the data in index register IX and a displacement value d,or
• the sum of the data in index register IY and a displacement value d.
The result is stored in the Accumulator.
ADC HL,ss
Opcode Instruction Clocks Operation
—— ADC HL,ss 4 (2,2) HL = HL + ss +CF
ED 4A ADC HL,BC 4 (2,2) HL = HL + BC + CF
ED 5A ADC HL,DE 4 (2,2) HL = HL + DE + CF
ED 6A ADC HL,HL 4 (2,2) HL = HL + HL + CF
ED 7A ADC HL,SP 4 (2,2) HL = HL + SP + CF
Flags ALTD I/O
S Z L/V C F R SP S D
• • V • • •
ADD A,(HL)
ADD A,(IX+d)
ADD A,(IY+d)
Opcode Instruction Clocks Operation
86 ADD A,(HL) 5 (2,1,2) A = A + (HL)
DD 86 d ADD A,(IX+d) 9 (2,2,2,1,2) A = A + (IX+d)
FD 86 d ADD A,(IY+d) 9 (2,2,2,1,2) A = A + (IY+d)
Flags ALTD I/O
S Z L/V C F R SP S D
• • V • • • •