M-V850E-IA4 Renesas Electronics America, M-V850E-IA4 Datasheet - Page 51

no-image

M-V850E-IA4

Manufacturer Part Number
M-V850E-IA4
Description
KIT EVAL V850E IA4 UPD70F3186
Manufacturer
Renesas Electronics America
Datasheets

Specifications of M-V850E-IA4

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
3.2.1
The program register set includes general-purpose registers and a program counter.
(1) General-purpose registers (r0 to r31)
(2) Program counter (PC)
Thirty-two general-purpose registers, r0 to r31, are available. Any of these registers can be used as a data
variable or address variable.
However, r0 and r30 are implicitly used by instructions, and care must be exercised when using these
registers. r0 is a register that always holds 0, and is used for operations using 0 and offset 0 addressing. r30
is used, by means of the SLD and SST instructions, as a base pointer for when memory is accessed. Also, r1,
r3 to r5, and r31 are implicitly used by the assembler and C compiler. Therefore, before using these registers,
their contents must be saved so that they are not lost. The contents must be restored to the registers after the
registers have been used. r2 may be used by the real-time OS. If the real-time OS does not use r2, it can be
used as a variable register.
This register holds the instruction address during program execution. The lower 26 bits of this register are
valid, and bits 31 to 26 are fixed to 0. If a carry occurs from bit 25 to 26, it is ignored.
Bit 0 is fixed to 0, and branching to an odd address cannot be performed.
Program register set
r0
r1
r2
r3
r4
r5
r6 to r29
r30
r31
Name
After reset: 00000000H
PC
31
Zero register
Assembler-reserved register
Address/data variable register (when r2 is not used by the real-time OS)
Stack pointer
Global pointer
Text pointer
Address/data variable registers
Element pointer
Link pointer
Fixed to 0
Usage
26 25
Table 3-1. General-Purpose Registers
CHAPTER 3 CPU FUNCTION
User’s Manual U16543EJ4V0UD
Always holds 0
Working register for generating 32-bit immediate data
Used to generate stack frame when function is called
Used to access global variable in data area
Register to indicate the start of the text area (where program
code is located)
Base pointer when memory is accessed
Used by compiler when calling function
Instruction address during execution
Operation
1 0
0
49

Related parts for M-V850E-IA4