09 INC
INC
- The INC (Increment) instruction is used to increase the value in a General Purpose Register (
Rd) by one.
Instruction Syntax
INC RdRd: The register whose value will be increased by one.- Must be one of the 32 general-purpose registers:
R0–R31.
- Must be one of the 32 general-purpose registers:
Example
Valid Instruction:
INC R2R2:R2is valid since it is within the register rangeR0–R31.- Effect: Increment the value in
R2by one and store the result inR2.