SUBA

SUBA

Operation:
Destination - Source -->; Destination

Assembler Syntax:
SUBA <ea>, An

Attributes: Size = (Word, Long)

Description: Subtracts the source operand from the destination
address register and stores the result in the address register.
The size of the operation may be specified as word or long.
Word size source operands are sign extended to 32-bit
quantities prior to the subtraction.

Condition Codes: Not affected.

Example:

A1= $00001234
SUBA.W #1111,A1

Mind that with .W the source will get sign extended to 32bit

$00001234
-$00001111
---------
$00000123

A1 = $00000123

Related Instructions:
SUB
SUBI
SUBQ
SUBX