Prev: CD41 Up: Map Next: CDEF
CDC4: Monty has grabbed the bucket - start the miner chase
Used by the routine at CD41.
CDC4 LD A,($CD32) Has the flag already been set?
CDC7 OR A
CDC8 RET Z Return if so.
CDC9 LD HL,$964D Set all the coal flags as "not collected".
CDCC LD B,$40
CDCE SET 7,(HL)
CDD0 INC HL
CDD1 DJNZ $CDCE
CDD3 LD A,$02 Set the miner to appear in room 0.
CDD5 LD ($9BBE),A
CDD8 LD ($9BD2),A
Erase the bucket.
CDDB XOR A Signal that Monty has the bucket.
CDDC LD ($CD32),A
CDDF LD HL,$7780 7780 is the empty graphic.
CDE2 LD ($ECE0),HL Set the graphic to draw.
CDE5 LD HL,$4F2F Set co-ordinate of the bucket.
CDE8 LD ($ECDE),HL
CDEB CALL $EBE0 Draw (erase) the graphic and return.
CDEE RET
Prev: CD41 Up: Map Next: CDEF