Arithmetic // ADD
The contents of register r are added to the contents of the Accumulator, and the result is stored in the Accumulator. The r symbol identifies the registers A, B, C, D, E, H, or L, assembled as follows in the object code: Register r A111 B000 C001 D010 E011 H100 L101
If the Accumulator contains 44h and Register C contains 11h, then upon the execution of an ADD A, C instruction, the Accumulator contains 55h.
add hl,bc
0x09,
1 bytes, 11Tadd hl,de
0x19,
1 bytes, 11Tadd hl,hl
0x29,
1 bytes, 11Tadd hl,sp
0x39,
1 bytes, 11Tadd a,b
0x80,
1 bytes, 4Tadd a,c
0x81,
1 bytes, 4Tadd a,d
0x82,
1 bytes, 4Tadd a,e
0x83,
1 bytes, 4Tadd a,h
0x84,
1 bytes, 4Tadd a,l
0x85,
1 bytes, 4Tadd a,(hl)
0x86,
1 bytes, 7Tadd a,a
0x87,
1 bytes, 4Tadd a,*
0xC6,
2 bytes, 7Tadd ix,bc
0xDD09,
2 bytes, 15Tadd ix,de
0xDD19,
2 bytes, 15Tadd ix,ix
0xDD29,
2 bytes, 15Tadd ix,sp
0xDD39,
2 bytes, 15Tadd a,ixh
0xDD84,
2 bytes, 8Tadd a,ixl
0xDD85,
2 bytes, 8Tadd a,(ix+*)
0xDD86,
3 bytes, 19Tadd iy,bc
0xFD09,
2 bytes, 15Tadd iy,de
0xFD19,
2 bytes, 15Tadd iy,iy
0xFD29,
2 bytes, 15Tadd iy,sp
0xFD39,
2 bytes, 15Tadd a,iyh
0xFD84,
2 bytes, 8Tadd a,iyl
0xFD85,
2 bytes, 8Tadd a,(iy+*)
0xFD86,
3 bytes, 19Tadd hl,a
0xED31,
2 bytes, 8Tadd de,a
0xED32,
2 bytes, 8Tadd bc,a
0xED33,
2 bytes, 8Tadd hl,$im16
0xED34,
4 bytes, 16Tadd de,$im16
0xED35,
4 bytes, 16Tadd bc,$im16
0xED36,
4 bytes, 16T