![background image](http://html.mh-extra.com/html/epson/s1c6s3n2/s1c6s3n2_technical-manual_107792165.webp)
S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-19
CHAPTER 4: INTERRUPT AND HALT
YIKSTB
EQU
● ▲
● ▲
H
;
;
YTIB
EQU
● ■
● ■
H
;
;
;
IN:
PUSH
XH
;
PUSH
XL
;
PUSH
YH
;
PUSH
YL
;
PUSH
A
;
PUSH
B
;
PUSH
F
;
;
LD
X,7AH
;
LD
Y,YIKSTB
;
LD
MY,MX
;
LD
X,76H
;
LD
A,MX
;
OR
A,1100B
;
AND
MY,A
;
;
FAN
MY,0001B
;
JP
Z,INSIT1
;
CALL
STI0
;
;
INSIT1:
LD
Y,YIKSTB
;
FAN
MY,0010B
;
JP
Z,INK0
;
CALL
SIT1
;
;
INK0:
LD
Y,YIKSTB
;
FAN
MY,0100B
;
JP
Z,INK1
;
CALL
IK0
;
INK1:
LD
Y,YIKSTB
;
FAN
MY,1000B
;
JP
Z,INTI
;
CALL
IK1
;
INTI:
LD
X,79H
;
LD
Y,YETI
;
LD
MY,MX
;
Buffer address for factor flags of input interrupts
and stopwatch interrupts
Buffer address for timer interrupt factor flags
Store the value of X register to stack
Store the value of Y register to stack
Store the value of A register to stack
Store the value of B register to stack
Store the value of F register to stack
Reset and store
input interrupt and stopwatch interrupt factor flags
in the buffer
Mask the stopwatch interrupt factor flags
by the value of the stopwatch interrupt mask register
If the ST10Hz interrupt factor flag is set
and enabled
then
execute ST10Hz interrupt processing "SIT0"
If the ST1Hz interrupt factor flag is set
and enabled
then
execute ST1Hz interrupt processing "SIT1"
If the K0 interrupt factor flag is set
then
execute K0 interrupt processing "IK0"
If the K1 interrupt factor flag is set
then
execute K1 interrupt processing "IK1"
Reset and store
the timer interrupt factor flags
in the buffer
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......