Registers; General-Purpose Registers (R0-R7); Program Counter (Pc) - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

2 Registers

The S1C17 Core contains eight general-purpose registers and three special registers.
Special registers
bit 23
7
6
5
4
IL[2:0]
IE
2.1 General-Purpose Registers (R0–R7)
Symbol
R0–R7
General-Purpose Register
The eight registers R0–R7 (r0–r7) are 24-bit general-purpose registers that can be used for data manipulation, data
transfer, memory addressing, or other general purposes. The contents of all of these registers are handled as 24-bit
data or addresses. 8- or 16-bit data can be sign- or zero-extended to a 24-bit quantity when it is loaded into one of
these registers using a load instruction or a conversion instruction. When these registers are used for address refer-
ences, 24-bit memory space can be accessed directly.
At initial reset, the contents of the general-purpose registers are set to 0.

2.2 Program Counter (PC)

Symbol
PC
Program Counter
The Program Counter (hereinafter referred to as the "PC") is a 24-bit counter for holding the address of an instruc-
tion to be executed. More specifically, the PC value indicates the address of the next instruction to be executed.
As the instructions in the S1C17 Core are fixed at 16 bits in length, the LSB (bit 0) of the PC is always 0.
Although the S1C17 Core allows the PC to be referenced in a program, the user cannot alter it. Note, however, that
the value actually loaded into the register when a ld.a %rd,%pc instruction (can be executed as a delayed slot
instruction) is executed is the "PC value for the ld instruction + 2."
At an initial reset, the reset vector (address) written at the top of vector table indicated by TTBR is loaded into the
PC, and the processor starts executing a program from the address indicated by the PC.
23
S1C17 CORE MANUAL
(Rev. 1.2)
bit 0
PC
SP
PSR
3
2
1
0
C
V
Z
N
Figure 2.1 Registers
Register name
Register name
Effective address
Figure 2.2.1 Program Counter (PC)
Seiko Epson Corporation
General-purpose registers
bit 23
7
R7
6
R6
5
R5
4
R4
3
R3
2
R2
1
R1
0
R0
Size
R/W
24 bits
R/W
Size
R/W
24 bits
R
1
2 REGISTERS
bit 0
Initial value
0x000000
Initial value
(Reset vector)
0
0
2-1

Advertisement

Table of Contents
loading

Table of Contents