XA User Guide 6-32 4/17/98
ADD Integer Addition
Syntax: ADD dest, source
Operation: dest <- src + dest
Description: Performs a twos complement binary addition of the source and destination operands,
and the result is placed in the destination operand. The source data is not affected by the operation.
Note: If used with write to PSWL, takes precedence to flag updates
Sizes: Byte-Byte, Word-Word
Flags Updated: C, AC, V, N, Z
ADD Rd, Rs
Bytes: 2
Clocks: 3
Operation: (Rd) <-- (Rd) + (Rs)
Encoding:
ADD Rd, [Rs]
Bytes: 2
Clocks: 4
Operation: (Rd) <-- (Rd) + ((WS:Rs))
Encoding:
ADD [Rd], Rs
Bytes: 2
Clocks: 4
Operation: (WS:Rd) <-- (WS:Rd) + (Rs)
Encoding:
0000001SZ d ssdddss
0 0 0 0 SZ 0 1 0 d d d d 0 s s s
0 0 0 0 SZ 0 1 0 s s s s 1 d d d