Motorola CPU32 Reference Manual page 113

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

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents