 | 8051 Instruction Set Manual |  |
|
|
| INCThe INC instruction increments the specified operand by 1. An original value of 0FFh or 0FFFFh overflows to 00h or 0000h. No flags are affected by this instruction. Note When this instruction is used to modify an output port, the value used as the port data is read from the output data latch, not the input pins of the port. See Also: DEC | Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
INC
(Ri) = (Ri) + 1
| | Example |
INC @R0
|
| Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
INC
A = A + 1
| | Example |
A = A + 1
|
| Bytes | 2 | | Cycles | 1 | | Encoding | | | Operation |
INC
(direct) = (direct) + 1
| | Example |
INC 34h
|
| Bytes | 1 | | Cycles | 2 | | Encoding | | | Operation |
INC
DPTR = DPTR + 1
| | Example |
INC DPTR
|
| Bytes | 1 | | Cycles | 1 | | Encoding | | | Operation |
INC
Rn = Rn + 1
| | Example |
INC Rn
|
|
|