Prev: A0A3 Up: Map Next: A0D2
A0B7: Colour a thing that moved down
The block, then (COLOUR_TRAIL_ABOVE) the room's colour into the row above it, unless that is above the attribute file.
COLOUR_MOVED_DOWN A0B7 POP HL
COLOUR_MOVED_DOWN_0 A0B8 PUSH BC
A0B9 PUSH HL
COLOUR_MOVED_DOWN_1 A0BA LD (HL),D
A0BB INC L
A0BC DJNZ COLOUR_MOVED_DOWN_1
A0BE POP HL
A0BF LD BC,$0020
A0C2 AND A
A0C3 SBC HL,BC
A0C5 POP BC
A0C6 DEC C
A0C7 JR NZ,COLOUR_MOVED_DOWN_0
This entry point is used by the routines at COLOUR_MOVED_DOWN_RIGHT and COLOUR_MOVED_DOWN_LEFT.
COLOUR_TRAIL_ABOVE A0C9 LD A,H
A0CA CP $58
A0CC RET C
COLOUR_MOVED_DOWN_2 A0CD LD (HL),E
A0CE INC L
A0CF DJNZ COLOUR_MOVED_DOWN_2
A0D1 RET
Prev: A0A3 Up: Map Next: A0D2