Renesas SH7781 User Manual

Page 59

Advertising
background image

2. Programming Model

Rev.1.00 Jan. 10, 2008 Page 29 of 1658

REJ09B0261-0100

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

Advertising