4
Chapter 1 Overview
1.3 Register Configuration
1.3 Register Configuration
The central processing unit (CPU) contains the 13 registers shown in Figure 1.3.1. Of these registers, R0,
R1, R2, R3, A0, A1, and FB each consist of two sets of registers configuring two register banks.
1.3.1 Data registers (R0, R0H, R0L, R1, R1H, R1L, R2, and R3)
The data registers (R0, R1, R2, and R3) consist of 16 bits, and are used primarily for transfers and
arithmetic/logic operations.
Registers R0 and R1 can be halved into separate high-order (R0H, R1H) and low-order (R0L, R1L) parts
for use as 8-bit data registers. For some instructions, moreover, you can combine R2 and R0 or R3 and
R1 to configure a 32-bit data register (R2R0 or R3R1).
Figure 1.3.1 CPU register configuration
R0H (High-order of R0)
b15
b8
b7
b0
R3
Data register (Note)
Address register (Note)
Frame base register (Note)
Program counter
Interrupt table register
User stack pointer
Interrupt stack pointer
Static base register
Flag register
INTBH
USP
ISP
SB
Note: These registers configure register banks.This register
banks consist of two sets.
AA
AA
AA
AA
AA
AA
A
A
AAAAAAA
AAAAAAA
AA
AA
AA
AA
AA
AA
A
A
AA
AA
C
D
Z
S
B
O
I
U
IPL
R0L (Low-order of R0)
R1H (High-order of R1)
R1L (Low-order of R1)
R2
b31
R3
R2
A1
A0
FB
b19
INTBL
b15
b0
PC
INTBH is the high-order 4 bits of INTB.
INTBL is the low-order 16 bits of INTB.
b19
b0
b15
b0
FLG
b15
b0
b15
b0
b7
b8
Carry flag
Debug flag
Zero flag
Sign flag
Register bank select flag
Overflow flag
Interrupt enable flag
Stack pointer select flag
Reserved area
Processor interrupt priority level
Reserved area
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...