SUBI

SUBI

Operation:
Destination - Immediate Data -->; Destination

Compatibility: 68000 Family

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:
\c22222
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.

Instruction Format:
\i3-----+--2Size,u6Effective Address,3Mode,3Reg,8Word Data (16 bits),8Byte Data (8 bits),0Long Data (32 bits),

Instruction Fields:
Size field -- Specifies the size of the operation:
00 -- Byte operation.
01 -- Word operation.
10 -- Long operation.
Effective Address field -- Specifies the destination operand. Only
data alterable addressing modes are allowed as shown:
\mBF8

Immediate field -- (data immediately following the instruction):
If size = 00, the data is the low-order byte of the
immediate word.
If size = 01, the data is the entire immediate word.
If size = 10, the data is the next two immediate words.

Related Instructions:
SUB,486
SUBA,487
SUBQ,489
SUBX,490
.487489