Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Manual de usuario Pagina 87

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 181
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 86
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 C33 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: 0xC00000).
The
reti instruction should be used for return from the handler routine.
Example
int 2 ; Executes the software exception 2 handler routine.
Vista de pagina 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 180 181

Comentarios a estos manuales

Sin comentarios