Motorola CPU32 Reference Manual page 103

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

CMP
Operation:
Assembler
Syntax:
Attributes:
Description:
sets condition codes according to the result. The data register is not changed.
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 occurs. Cleared otherwise.
C
Set if a borrow occurs. Cleared otherwise.
Instruction Format:
15
14
13
1
0
1
Instruction Fields:
Register field — Specifies the destination data register.
Opmode field:
CPU32
REFERENCE MANUAL
Compare
Destination – Source → cc
CMP 〈ea〉, Dn
Size = (Byte, Word, Long)
Subtracts the source operand from the destination data register and
V
C
*
*
12
11
10
9
1
REGISTER
Byte
Word
000
001
INSTRUCTION SET
8
7
6
5
OPMODE
Long
Operation
(〈Dn〉) − (〈ea〉)
010
CMP
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-55

Advertisement

Table of Contents
loading

Table of Contents