Difference between revisions of "ADD"
From GbdevWiki
(→add a,reg8) |
|||
Line 4: | Line 4: | ||
Adds the contents of an 8-bit register to the contents of accumulator and stores the result in accumulator. | Adds the contents of an 8-bit register to the contents of accumulator and stores the result in accumulator. | ||
− | + | *$80: add a,b | |
− | + | *$81: add a,c | |
− | + | *$82: add a,d | |
− | + | *$83: add a,e | |
− | + | *$84: add a,h | |
− | + | *$85: add a,l | |
− | + | *$86: add a,(hl) | |
− | + | *$87: add a,a |
Revision as of 11:12, 25 February 2008
ADD is an assembly opcode.
add a,reg8
Adds the contents of an 8-bit register to the contents of accumulator and stores the result in accumulator.
- $80: add a,b
- $81: add a,c
- $82: add a,d
- $83: add a,e
- $84: add a,h
- $85: add a,l
- $86: add a,(hl)
- $87: add a,a