INC (BINARY)
INC, INCP, DINC, DINCP (Binary)
INC instruction increments the value of Destination by one.
| |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
INC(P) DINC(P) | D | o | o | o | o | o | o | o | o | - | o | o | o | - | 2 | o | - | - |
When enabled, INC instruction adds 1 to D and saves the result to D again.
Example)
If X01 is ON, the value of Y10(H0018) increments by 1.