Prev: CA39 Up: Map Next: CB03
CAD1: Display the "game won" sequence
Used by the routine at F858.
CAD1 LD HL,$4000 Set HL to the start of the screen buffer.
CAD4 DI Turn off interrupts, so IM1 can be set.
CAD5 LD IY,$5C3A Set IY to the default used in the ROM.
CAD9 IM 1 Switch to interrupt mode 1.
CADB EI Re-enable interrupts
CADC LD DE,$4001 Clear the screen.
CADF LD BC,$1AFF
CAE2 LD (HL),$00
CAE4 LDIR
CAE6 LD HL,$5840 Set the attributes to bright cyan on black
CAE9 LD DE,$5841
CAEC LD BC,$027F
CAEF LD (HL),$45
CAF1 LDIR
CAF3 CALL $91E8 Print the score.
CAF6 XOR A Reset the timer for scrolling the message.
CAF7 LD ($CB92),A
CAFA LD A,$05 Start at column 5.
CAFC LD ($CB91),A
CAFF LD IX,$5CE1 Point IX to the end message.
Prev: CA39 Up: Map Next: CB03