Prev: C084 Up: Map Next: C0B8
C096: Interrupt a command
Used by the routine at C05C.
Input
HL Current tick counter
This routine is called when the tick counter overflows and the standard command should not be executed.
C096 LD A,L
C097 ADD HL,HL
C098 ADD HL,HL
C099 ADD HL,HL
C09A RRCA
C09B RRCA
C09C XOR L
C09D AND $03
C09F XOR L
C0A0 AND $1B
C0A2 CPL
C0A3 ADD HL,HL
C0A4 INC H
C0A5 DEC H
C0A6 JR NZ,$C0A5
C0A8 LD L,A
C0A9 DEC H
C0AA LD BC,$C029
C0AD ADD HL,BC
C0AE LD A,($A44F)
C0B1 JP (HL)
This entry point is used by the routine at C0B8.
C0B2 LD BC,$0113
C0B5 JP $C075
Prev: C084 Up: Map Next: C0B8