Cpu Registers; Cpu Registers - NEC VR4181 mPD30181 User Manual

64-/32-bit microprocessor hardware
Table of Contents

Advertisement

1.4.1 CPU registers

The V
4110 core has thirty-two 64-bit general-purpose registers (GPRs).
R
In addition, the processor provides the following special registers:
• 64-bit Program Counter (PC)
• 64-bit HI register, containing the integer multiply and divide upper doubleword result
• 64-bit LO register, containing the integer multiply and divide lower doubleword result
Two of the general-purpose registers have assigned functions as follows:
• r0 is hardwired to a value of zero, and can be used as the target register for any instruction whose result is to
be discarded. r0 can also be used as a source when a zero value is needed.
• r31 is the link register used by link instructions, such as JAL (Jump and Link) instruction. This register can be
used for other instructions. However, be careful that use of the register by a link instruction will not coincide
with use of the register for other operations.
The register group is provided within the CP0, to process exceptions and to manage addresses.
CPU registers can operate as either 32-bit or 64-bit registers, depending on the V
operation.
The operation of the CPU registers differs depending on what instructions are executed: 32-bit instructions or
MIPS16 instructions. For details, refer to V
The V
4181 has no Program Status Word (PSW) register as such; this is covered by the Status and Cause
R
registers incorporated within the CP0 (see 1.4.4 CP0 registers).
Figure 1-3 shows the CPU registers.
General-purpose registers
63
r31 = LinkAddress
CHAPTER 1 INTRODUCTION
4100 Series Architecture User's Manual.
R
Figure 1-3. CPU Registers
32
31
0
r0 = 0
r1
r2
r29
r30
User's Manual U14272EJ3V0UM
Multiply/divide registers
63
32
31
HI
63
32
31
LO
Program Counter
63
32
31
PC
4181 processor mode of
R
0
0
0
37

Advertisement

Table of Contents
loading

Table of Contents