Motorola CPU32 Reference Manual page 117

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

Advertisement

II
CMPI
Operation:
Assembler
Syntax:
Attributes:
Compare Immediate
CMPI
Destination -Immediate Data => cc
CMPI #(data), (ea)
Size
=
(Byte, Word, Long)
Description:
Subtracts the immediate data from the destination operand and sets condition codes
according to the result. The destination location is not changed. The size of the immediate data
must match the operation size.
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
0
0
0
0
1
1
0
0
WORD DATA (16 BITS)
7
6
SIZE
LONG DATA (32 BITS)
Instruction Fields:
Size field - Specifies the size of the operation:
00 -
Byte operation
01 - Word operation
10 -
Long operation
MOTOROLA
4-64
INSTRUCTION SET
5
4
3
2
o
EFFECTIVE ADDRESS
MODE
I
REGISTER
BYTE DATA (8 BITS)
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents