Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->SUBX

SUBX   Subtract with Extend

Compatibility: 68000, 68010, 68020 and CPU32 families.


Destination - Source - X -> Destination

Assembler Syntax:SUBX Dy,Dx
SUBX -(Ay),-(Ax)

Size:  Byte, Word or Long

Subtracts the source operand and the extend bit from the destination operand and stores the result in the destination location.


Condition Codes:

N    Set if result negative, else cleared
Z    Cleared if result non-zero, else unchanged
V    Set if overflow, else cleared
C    Set if borrow, else cleared
X    Set same as carry