Section 5 Exception Handling
Rev. 3.00 Sep. 27, 2007 Page 73 of 758
REJ09B0243-0300
5.1.3
Exception Handling Vector Table
Before exception handling starts, the exception handling vector table must be set in memory. The
exception handling vector table stores the start addresses of exception handling routines. (The
reset exception handling table holds the initial values of PC and SP.)
All exception sources are given different vector numbers and vector table address offsets. The
vector table addresses are calculated from these vector numbers and vector table address offsets.
During exception handling, the start addresses of the exception handling routines are fetched from
the exception handling vector table that is indicated by this vector table address.
Table 5.3 shows the vector numbers and vector table address offsets. Table 5.4 shows how vector
table addresses are calculated.
Table 5.3
Vector Numbers and Vector Table Address Offsets
Exception Handling Source
Vector Number
Vector Table Address Offset
Power-on reset
PC
0
H'00000000 to H'00000003
SP
1
H'00000004 to H'00000007
Manual reset
PC
2
H'00000008 to H'0000000B
SP
3
H'0000000C to H'0000000F
General illegal instruction
4
H'00000010 to H'00000013
(Reserved for system use)
5
H'00000014 to H'00000017
Illegal slot instruction
6
H'00000018 to H'0000001B
(Reserved for system use)
7
H'0000001C to H'0000001F
8
H'00000020 to H'00000023
CPU address
error
9
H'00000024 to H'00000027
(Reserved for system use)
10
H'00000028 to H'0000002B
Interrupt
NMI
11
H'0000002C to H'0000002F
User break
12
H'00000030 to H'00000033
(Reserved for system use)
13
H'00000034 to H'00000037
:
:
31
H'0000007C to H'0000007F
Trap instruction (user vector)
32
H'00000080 to H'00000083
:
:
63
H'000000FC
to
H'000000FF
Содержание SH7124 R5F7124
Страница 2: ...Rev 3 00 Sep 27 2007 Page ii of xx ...
Страница 8: ...Rev 3 00 Sep 27 2007 Page viii of xx ...
Страница 36: ...Section 1 Overview Rev 3 00 Sep 27 2007 Page 16 of 758 REJ09B0243 0300 ...
Страница 68: ...Section 2 CPU Rev 3 00 Sep 27 2007 Page 48 of 758 REJ09B0243 0300 ...
Страница 108: ...Section 5 Exception Handling Rev 3 00 Sep 27 2007 Page 88 of 758 REJ09B0243 0300 ...
Страница 166: ...Section 7 User Break Controller UBC Rev 3 00 Sep 27 2007 Page 146 of 758 REJ09B0243 0300 ...
Страница 400: ...Section 9 Multi Function Timer Pulse Unit 2 MTU2 Rev 3 00 Sep 27 2007 Page 380 of 758 REJ09B0243 0300 ...
Страница 724: ...Section 20 List of Registers Rev 3 00 Sep 27 2007 Page 704 of 758 REJ09B0243 0300 ...
Страница 772: ...Rev 3 00 Sep 27 2007 Page 752 of 758 REJ09B0243 0300 ...
Страница 778: ...Rev 3 00 Sep 27 2007 Page 758 of 758 REJ09B0243 0300 ...
Страница 781: ......
Страница 782: ...SH7125 Group SH7124 Group Hardware Manual ...