II-20
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 4: INTERRUPT AND HALT
LD
X,78H
;
AND
MY,MX
;
;
FAN
MY,0001B
;
JP
Z,INTI8
;
CALL
TI32
;
;
INTI8:
LD
Y,YTIB
;
FAN
MY,0010B
;
JP
Z,INTI2
;
CALL
TI8
;
;
INTI2:
LD
Y,YTIB
;
FAN
MY,0100B
;
JP
Z,INRT
;
CALL
TI2
;
;
INRT:
POP
F
;
POP
B
;
POP
A
;
POP
YL
;
POP
YH
;
POP
XL
;
POP
XH
;
RET
;
Mask the timer interrupt factor flag
by the value of the timer interrupt mask register
If the T32Hz interrupt factor flag is set
and enabled
then
execute T32Hz interrupt processing "TI32"
If the T8Hz interrupt factor flag is set
and enabled
then
execute T8Hz interrupt processing "TI8"
If the TI2Hz interrupt factor flag is set
and enabled
then
execute T2Hz interrupt processing "TI2"
Return the value of F register from stack
Return the value of B register from stack
Return the value of A register from stack
Return the value of Y register from stack
Return the value of X register from stack
Return to parent routine
Addresses of buffers IKSTB and TIB can be set anywhere in
RAM.
This routine assumes that processing routines "SIT0",
"SIT1", "IK0", "IK1", "TI32", "TI8" and "TI2" have been pre-
pared separately for each of the interrupts.
Summary of Contents for S1C6S3N2
Page 4: ......
Page 6: ......
Page 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Page 8: ......
Page 141: ...Software Software S1C6S3N2 II Technical Software ...
Page 142: ......
Page 146: ......