ADD n without carry
Addition of a number without carry
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
\(A \longleftarrow A + n\) | ||||||||
ADD A, n | ||||||||
1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | C6 |
n |
Flags Affected
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
s | set if result negative | ||||||||
z | set if result is 0 | ||||||||
h | set if carry from bit 3 | ||||||||
p/v | set if overflow | ||||||||
c | set if carry from bit 7 |
Opcode Matrix
n | |
---|---|
A |
ADD A,n
C6nn27 |
Instruction
Opcode hexSize bytesCycle count
| Implicit |
Last modified November 16, 2021: Add flags to math operations (63d34c2)