First page Back Continue Last page Overview Graphics
More Arithmetic Instructions
DEC MEM ;MEM-1->MEM
INC MEM ;MEM+1->MEM
The DEC and INC instructions, operate on byte-sized destinations. DEC will decrement the contents of a memory location. INC increments the contents of a memory location. All addressing modes are available.
The remaining instructions operate on registers and do not have operands.
Var1: dc.b 30