Motorola MPC823e Reference Manual page 1314

Microprocessor for mobile computing
Table of Contents

Advertisement

MPC823e Instruction Set—tw
tw
Assembler Syntax
BIT
0
1
2
FIELD
31
BIT
16
17
18
FIELD
B
Definition
Operation
Description
B-156
tw
TO,rA,rB
3
4
5
6
7
19
20
21
22
23
Trap Word
a ← EXTS(rA)
b ← EXTS(rB)
if (a < b) & TO[0] then TRAP
if (a > b) & TO[1] then TRAP
if (a = b) & TO[2] then TRAP
if (a <U b) & TO[3] then TRAP
if (a >U b) & TO[4] then TRAP
The contents of rA are compared with the contents of rB. If any
bit in the TO field is set and its corresponding condition is met by
the result of the comparison, then the system trap handler is
invoked.
Other registers altered:
None
Simplified mnemonics:
tweq
rA,rB
equivalent to
twlge
rA,rB
equivalent to
trap
equivalent to
POWERPC ARCHITECTURE
LEVEL
UISA
MPC823e REFERENCE MANUAL
8
9
10
11
12
TO
24
25
26
27
28
4
tw
tw
tw
SUPERVISOR
OPTIONAL
LEVEL
13
14
15
A
29
30
31
0
4,rA,rB
5,rA,rB
31,0,0
FORM
X
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents