SUBI

SUBI

Operation:
Destination - Immediate Data -->; Destination

Assembler Syntax:
SUBI #<data>, <ea>

Attributes: Size = (Byte, Word, Long)

Description: Subtracts the immediate data from the destination
operand, and stores the result in the destination location.
The size of the operation may be specified as byte, word, or
long. The size of the immediate data matches the operation size.

Condition Codes:

X Set the same as the carry bit.
N Set if the result is negative. Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Set if an overflow is generated. Cleared otherwise.
C Set if a carry is generated. Cleared otherwise.

Example:

1)
D1 = $11111111
SUBI.W #$1111,D1

Result: D1 = $11110000

2)
D1 = $11111111
SUBI.B #$22,D1

Result: D1 = $111111EF