subq

Subtract quick

Subtracts an immediate value of 1 to 8 from the second operand.

Sizes .b .w .l, .w by default

Used in
XNZVC ●●●●●
  • ● set from the result

Forms

Operands

#imm
An immediate from 1 to 8, for example #1. More
<ea>
An operand using one of the instruction’s supported addressing modes, such as d0, (a0)+ or 4(a1). It may name a register, memory or an immediate value. More

The first operand value must be between 1 and 8. If the destination is an address register, it is always treated as a long, and the condition codes are not affected.

move.l #$10, d0
subq.l #8, d0
subq.l #1, d0
; subq.w #9, d0 ; error! immediate must be 1-8