ADDQ

ADDQ

Operation:
Immediate Data + Destination -->; Destination

Compatibility: 68000 Family

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

Attributes: Size = (Byte, Word, Long)

Description: Adds the immediate data one through eight to 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
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:
\i1-+-+3Data,-2Size,u6Effective Address,3Mode,3Reg,

Instruction Fields:
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:
\mFF8
* Only word and long operations can be used with the Address
Register Direct addressing mode.

Related Instructions:
ADD,401
ADDA,402
ADDI,403
ADDX,405
.403405