Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->SUBQ

SUBQ   Subtract Quick

Compatibility: 68000, 68010, 68020 and CPU32 families.


Destination - Immediate Data -> Destination

where the immediate data may range from 1 to 8

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


<ea> - alterable

Size:  Byte, Word or Long

Subtracts the immediate data (1-8) from the destination operand.


Condition Codes:

N    Set if result negative, else cleared
Z    Set if result zero, else cleared
V    Set if overflow, else cleared
C    Set if borrow generated
X    Set same as carry

The Condition Codes are not affected if <ea> is an address register

    
Allowable Addressing Modes
    
SUBQ#(data),Dn
SUBQ#(data),An  (not byte)
SUBQ#(data),(An)
SUBQ#(data),(An)+
SUBQ#(data),-(An)
SUBQ#(data),(d16,An)
SUBQ#(data),(d8,An,Xn)
SUBQ#(data),(bd,An,Xn) 2
SUBQ#(data),([bd,An,Xn],od) 1
SUBQ#(data),([bd,An],Xn,od) 1
SUBQ#(data),(xxx).W
SUBQ#(data),(xxx).L
1   68020 only
2   68020 and CPU32 only