II-104
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 6: INITIAL RESET
Example of Initialize Program
After initial reset, and the CPU and data memory are reset
as shown on the previous page, this program starts from
address 100H (reset vector).
Then the initialize program's label (INIT) is defined in the
reset vector, and the program executes the initialize opera-
tion.
ORG
100H
;
;
JP
INIT
;
Reset vector address
Start program
This program defines the bottom address of Stack pointer,
clears RAM (including segment data) and resets Flag group,
in that order.
Internal Circuit
Setting Value
General-purpose register
A
0H
Stack pointer
SP
A0H
Interrupt flag
IF
0
Decimal flag
DF
0
Zero flag
ZF
0
Carry flag
CF
0
RAM data
(00H–6FH)
(80H–9FH)
Segment data
(C0H–EFH)
0H
*
The values for the B, X and Y registers are unde-
fined.
0H
6.2
Reset vector
Specifications
Table 6.2.1
Result of initializing
internal circuits
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......