ADD r without carry
Addition of a register without carry
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|
\(A \longleftarrow A + r\) | |||||||
ADD A, r | |||||||
1 | 0 | 0 | 0 | 0 | r |
Register | r |
---|---|
B | 000 |
C | 001 |
D | 010 |
E | 011 |
H | 100 |
L | 101 |
A | 111 |
Flags Affected
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
s | set if result negative | ||||||||
z | set if result is 0 | ||||||||
h | set if carry from bit 3 |
Opcode Matrix
A | B | C | D | E | H | L | |
---|---|---|---|---|---|---|---|
A |
ADD A,A
8714 |
ADD A,B
8014 |
ADD A,C
8114 |
ADD A,D
8214 |
ADD A,E
8314 |
ADD A,H
8414 |
ADD A,L
8514 |
Instruction
Opcode hexSize bytesCycle count
| Register |
Last modified November 16, 2021: Split ADD up to allow flags to be defined (7fea8b1)