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
InstructionsOpCodeBytesCyclesFlags
INC A0x0411None
INC iram addr0x0521None
INC @R00x0611None
INC @R10x0711None
INC R00x0811None
INC R10x0911None
INC R20x0A11None
INC R30x0B11None
INC R40x0C11None
INC R50x0D11None
INC R60x0E11None
INC R70x0F11None
INC DPTR0xA312None

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.