Compare 2 memory locations

Assembler Syntax:
CMPM (Ay)+, (Ax)+

Attributes: Size = (Byte, Word, Long)

Description: Subtracts the source operand from the destination
operand and sets the condition codes according to the result;
the destination location is not changed. The operands are
always addressed with the postincrement addressing mode,
using the address registers specified in the instruciton.
The size of the operation may be specified as byte, word,
or long.

Condition Codes:

X Not affected.
N Set if the result is negative. Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Set if an overflow occurs. Cleared otherwise.
C Set if a borrow occurs. Cleared otherwise.


Im mem = $1000 is the number $1234
In mem = $2000 is the number $2345
A0 = $1000
A1 = $2000

CMPM.W (A0)+,(A1)+

A0 and A1 will be incremented by two.
The flags will be set accordingly.
No memory content is changed.