INC 16-bit Increment
Increment 16-bit register pair by 1
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
\(dd \longleftarrow dd + 1\) | ||||||||
INC qq | ||||||||
0 | 0 | dd | 0 | 0 | 1 | 1 | ||
\(IX \longleftarrow IX + 1\) | ||||||||
INC IX | ||||||||
1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | DD |
0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 23 |
\(IY \longleftarrow IY + 1\) | ||||||||
INC IY | ||||||||
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | FD |
0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 23 |
Value | dd |
---|---|
00 | BC |
01 | DE |
10 | HL |
11 | SP |
Flags Affected
None. |
Opcode Matrix
BC | DE | HL | SP | IX | IY | |
---|---|---|---|---|---|---|
Op |
INC BC
0316 |
INC DE
1316 |
INC HL
2316 |
INC SP
3316 |
INC IX
DD23210 |
INC IY
FD23210 |
Instruction
Opcode hexSize bytesCycle count
| Register |
Last modified November 16, 2021: Add flags to math operations (63d34c2)