INC increments the value of register by 1. If the initial value of register is 255 (0xFF Hex), incrementing the value will cause it to reset to 0.
Syntax : INC register
Example : INC A
It will increment the data in accumulator by 1.
Syntax : INC register
Example : INC A
It will increment the data in accumulator by 1.
- Instruction
- Opcode
- Bytes
- Flags
- INC A
- 0x04
- 1
- None
- INC iram_addr
- 0x05
- 2
- None
- INC @R0
- 0x06
- 1
- None
- INC @R1
- 0x07
- 1
- None
- INC R0
- 0x08
- 1
- None
- INC R1
- 0x09
- 1
- None
- INC R2
- 0x0A
- 1
- None
- INC R3
- 0x0B
- 1
- None
- INC R4
- 0x0C
- 1
- None
- INC R5
- 0x0D
- 1
- None
- INC R6
- 0x0E
- 1
- None
- INC R7
- 0x0F
- 1
- None
- INC DPTR
- 0xA3
- 1
- None