ADDRESS METHODS: | Dn, An, (An), (An)+, -(An), x(An), x(An,xr.s), x.w, x.l, x(PC), x(PC,xr.s), #x |
DATA LENGTH: Word, longword
FLAGS: | X - U |
N - S | |
Z - S | |
C - Set if a borrow was needed when subtracting, otherwise it is cleared. | |
V - S |
SYNTAX: CMPA <ea>,An
There are four CMP instructions, CMP, CMPA, CMPI and CMPM. The compiler often chooses the right instruction, so you can write CMP all the time if you want.