Prev: D9E4 Up: Map Next: DCCB
DCB4: Initialise Interrupts
Used by the routines at Initialise_Game and Prepare_Frame.
Fills the interrupt vector table with DC and selects interrupt mode 02.
Initialise_Interrupts DCB4 LD HL,$DF00 Write DC to *Interrupt_Vector_Table and the next 0100 bytes.
DCB7 LD DE,$DF01
DCBA LD BC,$0100
DCBD LD (HL),$DC
DCBF LDIR
DCC1 LD A,$DF Set the interrupt vector high byte to DF.
DCC3 LD I,A Copy the interrupt vector high byte to the interrupt register.
DCC5 IM 2 Set interrupt mode 02.
DCC7 RET Return.
Restore interrupt mode 01.
Set_Interrupt_Mode_One DCC8 IM 1 Set interrupt mode 01.
DCCA RET Return.
Prev: D9E4 Up: Map Next: DCCB