7
DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
79
int
imm2
Function
Software exception
Standard)
sp
←
sp -
4
, W[sp]
←
pc +
2
, sp
←
sp -
4
, W[sp]
←
psr,
pc
←
Software exception vector
Extension
1
) Unusable
Extension
2
) Unusable
Code
15
12
11
8
7
4
3
2
1
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
imm2
0x048_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
0
– – – –
|
|
|
|
Mode
Immediate data (unsigned)
CLK
Seven cycles
Description
Generates a software exception.
The
int
instruction saves the address of the next instruction and the contents of the PSR into the
stack, then reads the software exception vector from the trap table and sets it to the PC. By this
processing, the program flow branches to the specified software exception handler routine.
The C
33
PE supports four types of software exceptions and the software exception number (
0
to
3
)
is specified by the
2
-bit immediate
imm2
.
imm2
Vector address
Software exception
0
:
0
Base +
48
Software exception
1
:
1
Base +
52
Software exception
2
:
2
Base +
56
Software exception
3
:
3
Base +
60
The Base is the trap table beginning address set in the TTBR register (default:
0
xC
00000
).
The
reti
instruction should be used for return from the handler routine.
Example
int 2
; Executes the software exception 2 handler routine.
Содержание S1C33 Series
Страница 1: ...CMOS 32 BIT SINGLE CHIP MICROCOMPUTER Core Manual S1C33 Family C33 PE ...
Страница 4: ......