ADC A,s

Add accumulator and specified operand with carry.
Function: A <- A + s + C
 
Format: s: may be r, n, (HL), (IX + d), or (IY + d)
 
r  
 
10001rrr
  
n  
 
11001110
  
byte 1: CE
 
nnnnnnnn
  
byte 2: immediate data
 
(HL)  
 
10001110
  
8E
 
(IX + d)  
 
11011101
  
byte 1: DD
 
10001110
  
byte 2: 8E
 
dddddddd
  
byte 3: offset data
 
(IY + d)  
 
11111101
  
byte 1: FD
 
10001110
  
byte 2: 8E
 
dddddddd
  
byte 3: offset data
 
r may be any one of:
A
111
B
000
C
001
D
010
E
011
H
100
L
101
Description: The operand s and the carry flag C from the status register are added to the accumulator, and the result is stored in the accumulator, s is defined in the description of similar ADD instructions.
 
Data Flow:
 
Timing:
s: M cycles: T states: usec
@ 2 MHz:
r
n
(HL)
(IX + d)
(IY + d)
1
2
2
5
5
4
7
7
19
19
2
3.5
3.5
9.5
9.5
 
Addressing Mode: r: implicit; n: immediate; (HL): indirect; (IX + d), (IY+d): indexed.
 
Byte Codes:
ADC  A,r
r:
ABCDEHL
8F88898A8B8C8D
 
Flags: ## # #O#
 
Example:
ADC  A,1A

OBJECT CODE
Before: After: