Motorola CPU32 Reference Manual page 223

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

Advertisement

III
TRAPcc
Trap on Condition
TRAPcc
Operation:
Assembler
Syntax:
Attributes:
If cc then TRAP
TRAPcc
TRAPcc.W #(data)
TRAPcc.L #(data)
Unsized or Size
=
(Word, Long)
Description:
If the specified condition is true, causes a TRAPcc exception (vector 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 handler. Condition code cc specifies one of the following conditions.
cc
Name
Code
Description
cc
Name
Code
CC
Carry Clear
0100
C
lS
low or Same
0011
CS
Carry Set
0101
C
IT
less Than
1101
EQ
Equal
0111
Z
MI
Minus
1011
F
Never equal
0001
0
NE
Not Equal
0110
GE
Greater or Equal
1100
N.V+N.V
Pl
Plus
1010
GT
Greater Than
1110
N.V.Z+N.V.Z T
Always true
0000
HI
High
0010
e.z
VC
Overflow Clear
1000
lE
less or Equal
1111
Z+N.V+N.V
VS
Overflow Set
1001
Condition Codes:
Not affected.
Instruction Format:
15
14
13
12
11
10
9
8
7
6
5
4
3
o
I
1
I
0
I
1
I
CONDITiON
I
1
I
1
I
1
I
1
I
1
I
OPTiONAL WORD
OR lONG WORD
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.
Description
C+Z
N.V+N.V
N
Z
N
V
V
2
0
OPMODE
MOTOROLA
4-170
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents