Increment f
The contents of register ‘f’ are incremented. If ‘d’ is ‘0’, the result is placed in the W register. If ‘d’ is ‘1’, the result is placed back in register ‘f’.
[the_ad id=”3059″]Syntax:
[ label ] INCF f,d
Operation:
(f) + 1 → (destination)
Operands:
- f is from 0 to 127
- d is either 0 or 1
Status Affected: None
Example:
1 |
INCF REG,0 |
1 2 |
REG = 0x01 W = 0x04 |
1 2 |
REG = 0x01 W = 0x02 |
Example:
1 |
INCF REG,1 |
1 2 |
REG = 0x01 W = 0x04 |
1 2 |
REG = 0x01 W = 0x02 |