addx

Add extended

Adds the source, destination and X flag, and stores the result in the destination.

Sizes .b .w .l, .w by default

XNZVC ●●●●●
  • ● depends on the result
  • Reads X

Forms

  • addx ,
  • addx ,

Operands

Dn
A data register, d0 to d7. More
-(An)
Decreases an address register by 1, 2 or 4 bytes for a byte, word or long access, then accesses memory there. A byte access through sp decreases it by 2 to keep it even. More

Both operands must be data registers, or both must use predecrement addressing. The registers need not be the same. For a value split across several registers or memory units, start with the least significant part and use X to carry into the next part.

Z is cumulative: a zero result preserves its previous value, and a nonzero result clears it. Set Z and clear X before starting a sequence, for example with move.w #4, ccr. Z then remains set only if every part of the result is zero. C and X report the carry from the current part.