Motorola CPU32 Reference Manual page 213

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

TRAPcc
Operation:
Assembler
Syntax:
Attributes:
Description:
number 7). The address of the next instruction word (current PC) is pushed onto the
stack. If the condition is not true, the processor performs no operation and execution
continues with the next instruction. The immediate data operand must be placed in
the word(s) immediately following the operation word. It is available to the trap han-
dler. Condition code cc specifies one of the following conditions.
cc
Name
CC
Carry Clear
CS
Carry Set
EQ
Equal
F
Never equal
GE
Greater or Equal
GT
Greater Than
HI
High
LE
Less or Equal
Condition Codes:
Not affected.
Instruction Format:
15
14
13
0
1
0
Instruction Fields:
Condition field — The binary code for one of the conditions listed in the table.
Opmode field — Selects the instruction form.
010 — Instruction is followed by word-size operand.
011 — Instruction is followed by long-word-size operand.
100 — Instruction has no operand.
CPU32
REFERENCE MANUAL
Trap on Condition
If cc then TRAP
TRAPcc
TRAPcc.W #〈data〉TRAPcc.L #〈data〉
Unsized or Size = (Word, Long)
If the specified condition is true, causes a TRAPcc exception (vector
Code
Description
0100
C
0101
C
0111
Z
0001
0
N • V; N • V
1100
1110 N • V • Z; N • V • Z
C • Z
0010
Z; N • V; N • V
1111
12
11
10
9
1
CONDITION
OPTIONAL WORD
OR LONG WORD
INSTRUCTION SET
cc
Name
LS
Low or Same
LT
Less Than
MI
Minus
N
Not Equal
E
PL
Plus
T
Always true
V
Overflow Clear
C
VS
Overflow Set
8
7
6
5
1
1
1
TRAPcc
Code
Description
0011
C; Z
N • V; N • V
1101
1011
N
0110
Z
1010
N
0000
1
1000
V
1001
V
4
3
2
1
1
1
OPMODE
MOTOROLA
0
4-165

Advertisement

Table of Contents
loading

Table of Contents