Prev: BFFB Up: Map Next: C05C
C00D: Interrupt routines
The code here has several entry points and is called when the tick counter accessed in C05C overflows and requires an "interrupt" to be triggered.
C00D NOP
C00E NOP
C00F NOP
C010 ADD A,$01
C012 JR $C02C
C014 NOP
C015 NOP
C016 NOP
C017 NOP
C018 NOP
C019 INC A
C01A JP $C02C
C01D NOP
C01E NOP
C01F NOP
C020 ADD A,$01
C022 JP $C02C
C025 NOP
C026 NOP
C027 NOP
C028 NOP
C029 NOP
C02A NOP
C02B INC A
C02C JR NZ,$C033
C02E LD A,(IX+$00)
C031 JR $C039
Toggle the speaker to play a sound
C033 EX AF,AF'
C034 XOR $10
C036 OUT ($FE),A
C038 EX AF,AF'
C039 LD HL,($A44D)
C03C LD DE,($A44B)
C040 ADD HL,DE
C041 EX DE,HL
C042 LD HL,($A449)
C045 ADD HL,DE
C046 LD ($A449),HL
C049 JR C,$C050
C04B LD A,($0000)
C04E JR $C054
C050 LD IX,($A459)
C054 EX DE,HL
C055 LD BC,$01B9
This entry point is used by the routine at C075.
C058 AND A
C059 SBC HL,BC
C05B EX DE,HL
Control passes to C05C
Prev: BFFB Up: Map Next: C05C