Motorola CPU32 Reference Manual page 105

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

CMPA
Operation:
Assembler
Syntax:
Attributes:
Description:
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
*
*
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
1
0
1
Instruction Fields:
Register field — Specifies the destination address register.
Opmode field — Specifies the size of the operation:
011 — Word operation. The source operand is sign-extended to a long oper-
and and the operation is performed on the address register using all 32 bits.
111 — Long operation.
CPU32
REFERENCE MANUAL
Compare Address
Destination – Source → cc
CMPA 〈ea〉, An
Size = (Word, Long)
Subtracts the source operand from the destination address register
V
C
*
*
12
11
10
9
1
REGISTER
INSTRUCTION SET
8
7
6
5
OPMODE
CMPA
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-57

Advertisement

Table of Contents
loading

Table of Contents