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
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.