Specifications

II-86 EPSON S1C62N82 TECHNICAL SOFTWARE
CHAPTER 3: PERIPHERAL CIRCUITS (Interrupt and Halt)
Interruption vector routine
Label Mnemonic/operand Comment
ORG 100H
JP INIT ;Jump to initial routine
HALT
JP TIINT ;Jump to timer interrupt routine
HALT
JP SWINT ;Jump to stopwatch interrupt routine
HALT
JP K0INT ;Jump to K0 input interrupt routine
HALT
JP K1INT ;Jump to K1 input interrupt routine
HALT
JP MELINT ;Jump to melody interrupt routine
MELINT LD Y,0ECH ;Address of melody interrupt
;factor flag
LD A,MY ;Reset melody interrupt
;factor flag
RETURN EI
RET
K1INT LD Y,0EDH ;Address of K10 input port interrupt
;factor flag
LD A,MY ;Reset K10 input port interrupt
;factor flag
JP RETURN
K0INT LD Y,0EDH ;Address of K0n input port interrupt
;factor flag
LD A,MY ;Reset K0n input port interrupt
;factor flag
JP RETURN
SWINT LD Y,0EEH ;Address of stopwatch interrupt
;factor flag
LD X,SWFSTK ;Address of stopwatch interrupt
;factor flag buffer
LD MX,MY ;Store stopwatch interrupt
;factor flag in buffer
FAN MX,0010B ;Check stopwatch 1 Hz
;factor flag
JP Z,SW10RQ ;Jump if not the 1 Hz request
;interrupt
CALL SW1IN ;Stopwatch 1 Hz interrupt
;service routine
SW10RQ LD X,SWFSTK ;Address of stopwatch interrupt
;factor flag buffer