Rev. 1.50, 10/04, page 10 of 448
31
0
R0_BANK0
*
1,
*
2
R1_BANK0
*
2
R2_BANK0
*
2
R3_BANK0
*
2
R4_BANK0
*
2
R5_BANK0
*
2
R6_BANK0
*
2
R7_BANK0
*
2
R8
R9
R10
R11
R12
R13
R14
R15
SR
GBR
MACH
MACL
PR
PC
(a) Register configuration
in user mode
31
0
R0_BANK1
*
1,
*
3
R1_BANK1
*
3
R2_BANK1
*
3
R3_BANK1
*
3
R4_BANK1
*
3
R5_BANK1
*
3
R6_BANK1
*
3
R7_BANK1
*
3
R8
R9
R10
R11
R12
R13
R14
R15
R0_BANK0
*
1,
*
4
R1_BANK0
*
4
R2_BANK0
*
4
R3_BANK0
*
4
R4_BANK0
*
4
R5_BANK0
*
4
R6_BANK0
*
4
R7_BANK0
*
4
(b) Register configuration in
privileged mode (RB = 1)
GBR
MACH
MACL
VBR
PR
SR
SSR
PC
SPC
31
0
R0_BANK1
*
1,
*
3
R1_BANK1
*
3
R2_BANK1
*
3
R3_BANK1
*
3
R4_BANK1
*
3
R5_BANK1
*
3
R6_BANK1
*
3
R7_BANK1
*
3
R8
R9
R10
R11
R12
R13
R14
R15
R0_BANK0
*
1,
*
4
R1_BANK0
*
4
R2_BANK0
*
4
R3_BANK0
*
4
R4_BANK0
*
4
R5_BANK0
*
4
R6_BANK0
*
4
R7_BANK0
*
4
(c) Register configuration in
privileged mode (RB = 0)
GBR
MACH
MACL
VBR
PR
SR
SSR
PC
SPC
SGR
DBR
SGR
DBR
R0 is used as the index register in indexed register-indirect addressing mode and
indexed GBR indirect addressing mode.
Banked registers
Banked registers
Accessed as general registers when the RB bit is set to 1 in SR. Accessed only by
LDC/STC instructions when the RB bit is cleared to 0.
Banked registers
Accessed as general registers when the RB bit is cleared to 0 in SR. Accessed only
by LDC/STC instructions when the RB bit is set to 1.
Notes: 1.
2.
3.
4.
Figure 2.2 CPU Register Configuration in Each Processing Mode
Summary of Contents for SuperH SH-4A
Page 2: ...Rev 1 50 10 04 page ii of xx ...
Page 8: ...Rev 1 50 10 04 page viii of xx ...
Page 116: ...Rev 1 50 10 04 page 96 of 448 ...
Page 178: ...Rev 1 50 10 04 page 158 of 448 ...
Page 206: ...Rev 1 50 10 04 page 186 of 448 ...
Page 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Page 446: ...Rev 1 50 10 04 page 426 of 448 ...
Page 468: ...Rev 1 50 10 04 page 448 of 448 ...
Page 471: ......
Page 472: ...SH 4A Software Manual ...