CoMPare Memory
NAME
CMPM -- Compare memory
SYNOPSIS
CMPM (Ay)+,(Ax)+
Size = (Byte, Word, Long)
FUNCTION
Subtracts the source operand from the destination operand
and sets the condition codes according to the result. The destination
operand is NOT changed. Operands are always addressed with the
postincrement mode.
FORMAT
-----------------------------------------------------------------
|15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|-----------|---|-------|---|---|---|-----------|
| 1 | 0 | 1 | 1 |Ax REGISTER| 1 | SIZE | 0 | 0 | 1 |Ay REGISTER|
----------------------------------------=========================
<ea>
SIZE
00->one Byte operation
01->one Word operation
10->one Long operation
REGISTER
Ax register specifies destination operand (for post-incrementation).
Ay register specifies source operand.
RESULT
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 occours. Cleared otherwise.
C - Set if a borrow occours. Cleared otherwise.
SEE ALSO
CMP CMPI CMPA CMP2
TST CHK CHK2
HTML Conversion by AG2HTML.pl V2.941126c, perl $RCSfile: cmpm.HTML,v $$Revision: 1.1 $$Date: 1999/09/14 21:14:08 $
Patch level: 36
& witbrock@cs.cmu.edu