Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->CMPA

CMPA    Compare Address


Destination - Source


    
Assembler Syntax:CMPA.L <ea>,An
CMPA <ea>,An (V4 and above)
CMPA.sz <ea>,An (V4 and above)

Size:    Long plus for ColdFire 4 Series Word

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
    
Dn,An
An,An
(An),An
(An)+,An
-(An),An
(d16,An),An
(d8,An,Xn),An
(xxx).W,An
(xxx).L,An
#(data),An
(d16,PC),An
(d8,PC,Xn),An