Destination - Immediate Data -->; Destination
Compatibility: 68000 Family
SUBQ #<data>, <ea>
Attributes: Size = (Byte, Word, Long)
Description: Subtracts the immediate data (1-8) 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. Only word and long operations are allowed
with address registers, and the condition codes are not
affected. When subtracting from address registers, the
entire destination address register is used, regardless of the
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.
Data field -- Three bits of immediate data; 1-7 represents
immediate values of 1-7, and zero represents eight.
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:
* Only word and long operations can be used with the Address
Register Direct addressing mode.