Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->CMPA

CMPA    Compare Address

Compatibility: 68000, 68010, 68020, CPU32 families


Destination - Source


Assembler Syntax:    CMPA <ea>,An


<ea> - all modes

Size:    Word or Long

Subtracts the source operand from the destination address register and sets the condition codes according to the result; the address register is not changed.


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, else cleared
X    Not affected

    
Allowable Addressing Modes
    
CMPADn,An
CMPAAn,An
CMPA(An),An
CMPA(An)+,An
CMPA-(An),An
CMPA(d16,An),An
CMPA(d8,An,Xn),An
CMPA(bd,An,Xn),An 2
CMPA([bd,An,Xn],od),An 1
CMPA([bd,An],Xn,od),An 1
CMPA(xxx).W,An
CMPA(xxx).L,An
CMPA#(data),An
CMPA(d16,PC),An
CMPA(d8,PC,Xn),An
CMPA(bd,PC,Xn),An 2
CMPA([bd,PC,Xn],od),An 1
CMPA([bd,PC],Xn,od),An 1
1   68020 only
2   68020 and CPU32 only