Motorola CPU32 Reference Manual page 115

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

III
CMPA
Operation:
Assembler
Syntax:
Attributes:
Compare Address
CMPA
Destination - Source::::) cc
CMPA (ea), An
Size
=
(Word, Long)
Description:
Subtracts the source operand from the destination address register and sets the
condition codes according to the result. The address register is not changed. The size of the
operation can be specified as word or long. Word length source operands are sign extended to
32-bits for comparison.
Condition Codes:
x
N
z
v
C
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 is generated. Cleared otherwise.
C Set if a borrow is generated. Cleared otherwise.
Instruction Format:
15
14
13
12
11
10
9
8
7
1
0
1
1
REGISTER
OPMODE
Instruction Fields:
6
Register field - Specifies the destination address register.
Opmode field - Specifies the size of the operation:
5
4
3
2
o
EFFECTIVE ADDRESS
MODE
I
REGISTER
011 -
Word operation. The source operand is sign-extended to a long operand and the
operation is performed on the address register using all 32 bits.
111 - Long operation.
MOTOROLA
4-62
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents