Motorola MPC823e Reference Manual page 1315

Microprocessor for mobile computing
Table of Contents

Advertisement

twi
Assembler Syntax
BIT
0
1
2
FIELD
03
BIT
16
17
18
FIELD
Definition
Operation
Description
MOTOROLA
twi
TO,rA,SIMM
3
4
5
6
7
19
20
21
22
23
SIMM
Trap Word Immediate
a ← EXTS(rA)
if (a < EXTS(SIMM)) & TO[0] then TRAP
if (a > EXTS(SIMM)) & TO[1] then TRAP
if (a = EXTS(SIMM)) & TO[2] then TRAP
if (a <U EXTS(SIMM)) & TO[3] then TRAP
if (a >U EXTS(SIMM)) & TO[4] then TRAP
The contents of rA are compared with the sign-extended value
of the SIMM field. 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:
twgti
rA,value
twllei
rA,value
POWERPC ARCHITECTURE
LEVEL
UISA
MPC823e REFERENCE MANUAL
MPC823e Instruction Set—twi
8
9
10
11
12
TO
24
25
26
27
28
equivalent to
twi
equivalent to
twi
SUPERVISOR
OPTIONAL
LEVEL
13
14
15
A
29
30
31
8,rA,value
6,rA,value
FORM
D
B-157

Advertisement

Table of Contents
loading

Table of Contents