Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->CMPM

CMPM    Compare Memory

Compatibility: 68000, 68010, 68020, CPU32 families

Destination - Source -> Condition Codes


Assembler Syntax:    CMPM (Ay)+,(Ax)+


Size:    Byte, Word, Long

Subtracts the source command from the destination operand and sets the condition codes according to the results; the destination location 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