Chase H.Q. | Routines |
Prev: EE3D | Up: Map | Next: EE5E |
Used by the routine at diamond_zoom_in_mask.
|
||||
setup_interrupts | EE40 | DI | Disable interrupts | |
EE41 | LD HL,$FD00 | HL = $FD00 | ||
EE44 | LD A,H | A = $FD | ||
Set the 128 words at $FD00 to $FEFE.
|
||||
EE45 | LD B,$00 | B = 0 -- 256 iterations, or 255? | ||
EE47 | LD C,$FE | C = $FE | ||
setup_interrupts_0 | EE49 | LD (HL),C | *HL++ = C | |
EE4A | INC HL | |||
EE4B | DJNZ setup_interrupts_0 | Loop | ||
EE4D | LD (HL),C | Store final $FE | ||
EE4E | LD I,A | Set interrupt vector base to $FD00 | ||
EE50 | IM 2 | Set interrupt mode 2 | ||
Set $FEFE to be "JP $EF19".
|
||||
EE52 | LD A,$C3 | $FEFE = $C3 -- opcode for JP | ||
EE54 | LD ($FEFE),A | |||
EE57 | LD HL,$EF19 | $FEFF = sub_ef19 | ||
EE5A | LD ($FEFF),HL | |||
EE5D | RET | Return |
Prev: EE3D | Up: Map | Next: EE5E |