Motorola CPU32 Reference Manual page 107

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

CMPI
Operation:
Assembler
Syntax:
Attributes:
Description:
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
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
0
0
0
WORD DATA (16 BITS)
Instruction Fields:
Size field — Specifies the size of the operation:
00 — Byte operation
01 — Word operation
10 — Long operation
CPU32
REFERENCE MANUAL
Compare Immediate
Destination – Immediate Data → cc
CMPI #〈data〉, 〈ea〉
Size = (Byte, Word, Long)
Subtracts the immediate data from the destination operand and sets
X
N
*
12
11
10
9
0
1
1
0
LONG DATA (32 BITS)
INSTRUCTION SET
Z
V
C
*
*
*
8
7
6
5
0
SIZE
BYTE DATA (8 BITS)
CMPI
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-59

Advertisement

Table of Contents
loading

Table of Contents