INC Instruction

Purpose:To add 1 to an integer
Format:opcode sum.mx
Operation:sum <- sum + 1;
Condition
Codes:
N <- sum LSS 0;
Z <- sum EQL 0;
V <- {integer overflow};
C <- {carry from the most significant bit};
Exceptions:Integer Overflow
Opcodes:
96INCBIncrement Byte
B6INCWIncrement Word
D6INCLIncrement Long
Description: One is added to the sum operand and the sum operand is replaced by the result
Notes:
1.
Arithmetic overflow occurs if the largest positive integer is incremented. On overflow, the sum operand is replaced by the largest negative integer.
2.
INCx sum is equivalent to ADDx #1, sum, but is one byte shorter.