10 DEC
DEC
- The DEC (Decrement) instruction is used to decrease the value in a General Purpose Register (
Rd) by one.
Instruction Syntax
DEC RdRd: The register whose value will be decreased 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:
DEC R10R10:R10is valid since it is within the register rangeR0–R31.- Effect: Decrease the value in
R10by one and store the result inR10.