INC
Description:
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. Note: The Carry Flag is NOT set when the value "rolls over" from 255 to 0.
Operation: | INC |
Function: | Increment Register |
Syntax: | INC register |
Instructions | OpCode | Bytes | Cycles | Flags |
INC A | 0x04 | 1 | 1 | None |
INC iram addr | 0x05 | 2 | 1 | None |
INC @R0 | 0x06 | 1 | 1 | None |
INC @R1 | 0x07 | 1 | 1 | None |
INC R0 | 0x08 | 1 | 1 | None |
INC R1 | 0x09 | 1 | 1 | None |
INC R2 | 0x0A | 1 | 1 | None |
INC R3 | 0x0B | 1 | 1 | None |
INC R4 | 0x0C | 1 | 1 | None |
INC R5 | 0x0D | 1 | 1 | None |
INC R6 | 0x0E | 1 | 1 | None |
INC R7 | 0x0F | 1 | 1 | None |
INC DPTR | 0xA3 | 1 | 2 | None |
In the case of "INC DPTR", the value two-byte unsigned integer value of DPTR is incremented. If the initial value of DPTR is 65535 (0xFFFF Hex), incrementing the value will cause it to reset to 0. Again, the Carry Flag is NOT set when the value of DPTR "rolls over" from 65535 to 0.
User Comments
No Posts found !Login to Post a Comment.