Motorola CPU32 Reference Manual page 199

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

SUBX
Operation:
Assembler
Syntax:
Attributes:
Description:
operand and stores the result in the destination location. The instruction has two
modes:
1. Register to register: Data registers specified by the instruction contain the op-
erands.
2. Memory to memory: Address registers specified by the instruction access op-
erands from memory using predecrement addressing mode.
Condition Codes:
X
N
Z
*
*
*
X
Set to the value of the carry bit.
N
Set if the result is negative. Cleared otherwise.
Z
Cleared if the result is nonzero. Unchanged otherwise.
V
Set if an overflow occurs. Cleared otherwise.
C
Set if a carry occurs. Cleared otherwise.
Normally the Z condition code bit is set via programming before the
start of an operation. This allows successful tests for zero results
upon completion of multiple-precision operations.
CPU32
REFERENCE MANUAL
Subtract with Extend
Destination – Source – X → Destination
SUBX Dx, Dy
SUBX –(Ax), –(Ay)
Size = (Byte, Word, Long)
Subtracts the source operand and the extend bit from the destination
V
C
*
*
INSTRUCTION SET
NOTE
SUBX
MOTOROLA
4-151

Advertisement

Table of Contents
loading

Table of Contents