ADDA

ADDA

Operation:
Source + Destination -->; Destination

Assembler Syntax:
ADDA <ea>, An

Attributes: Size = (Word, Long)

Description: Adds the source operand to 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 addition.

Condition Codes: Not affected.

Example:

1)
A1= $00001234
ADDA.W #8123,A1

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

$00001234
+$FFFF8123
---------
$FFFF9357

A1 = $FFFF9357


2) D0= $00095000
A0= $00081234
ADDA.l D0,A0


A0 = $00116234