FLAGS: | X - Set if carry from the most significant bit, otherwise it is cleared. |
N - S | |
Z - S | |
C - Same as X | |
V - S |
The Z flag works in another way now, making it possible to check if a big number (much bigger than 32 bits) is zero. You must set the zero flag before making the addition though, shorter than comparing a register with itself.
SYNTAX: | ADDX Dy,Dx |
ADDX -(Ay),-(Ax) |
EXAMPLE CODE:
ADDX D0,D1 Adds D0 and D1 + X bit. then clears the X bit