Mitsubishi Electric M32R Series User Manual page 44

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

2
2.1 CPU Registers
The M32R has sixteen general-purpose registers, five control registers, an accumulator, and a
program counter. The accumulator is a 56-bit configuration, and all other registers are a 32-bit
configuration.
2.2 General-purpose Registers
General-purpose registers are 32 bits in width and there are sixteen of them (R0 to R15), which are
used to hold data and base addresses. Especially, R14 is used as a link register, and R15 is used
as a stack pointer. The link register is used to store the return address when executing a subroutine
call instruction. The stack pointer is switched between an interrupt stack pointer (SPI) and a user
stack pointer (SPU) depending on the value of the Processor Status Word register (PSW)'s stack
mode (SM) bit.
0
Note: The stack pointer is switched between an interrupt stack pointer (SPI) and a user stack pointer
(SPU) depending on the value of the PSW's SM bit.
Figure 2.2.1 General-purpose Registers
31
0
R0
R1
R2
R3
R4
R5
R6
R7
2-2
2.1 CPU Registers
31
R8
R9
R10
R11
R12
R13
R14 (Link register)
R15 (Stack pointer)
CPU
(Note)
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents