Semiconductor Group
4-35
1998-04-01
Instruction Set
C500 Family
INC
DPTR
Function:
Increment data pointer
Description:
Increment the 16-bit data pointer by 1. A 16-bit increment (modulo 2
16
) is performed;
an overflow of the low-order byte of the data pointer (DPL) from 0FFH to 00H will
increment the high-order byte (DPH). No flags are affected.
This is the only 16-bit register which can be incremented.
Example:
Registers DPH and DPL contain 12H and 0FEH, respectively. The instruction
sequence
INC
DPTR
INC
DPTR
INC
DPTR
will change DPH and DPL to 13H and 01H.
Operation:
INC
(DPTR)
¬
(DPTR) + 1
Bytes:
1
Cycles:
2
Encoding:
1 0 1 0
0 0 1 1