Arithmetic // INC (INCrement)
Register r is incremented and register r identifies any of the registers A, B, C, D, E, H, or L, assembled as follows in the object code. Register r A 111 B 000 C 001 D 010 E 011 H 100 L 101
If the D Register contains 28h, then upon the execution of an INC D instruction, the D Register contains 29h.
inc bc 0x03,
1 bytes, 6Tinc b 0x04,
1 bytes, 4Tinc c 0x0C,
1 bytes, 4Tinc de 0x13,
1 bytes, 6Tinc d 0x14,
1 bytes, 4Tinc e 0x1C,
1 bytes, 4Tinc hl 0x23,
1 bytes, 6Tinc h 0x24,
1 bytes, 4Tinc l 0x2C,
1 bytes, 4Tinc sp 0x33,
1 bytes, 6Tinc (hl) 0x34,
1 bytes, 11Tinc a 0x3C,
1 bytes, 4Tinc ix 0xDD23,
2 bytes, 10Tinc ixh 0xDD24,
2 bytes, 8Tinc ixl 0xDD2C,
2 bytes, 8Tinc (ix+*) 0xDD34,
3 bytes, 23Tinc iy 0xFD23,
2 bytes, 10Tinc iyh 0xFD24,
2 bytes, 8Tinc iyl 0xFD2C,
2 bytes, 8Tinc (iy+*) 0xFD34,
3 bytes, 23T