Prev: 807A Up: Map Next: 80AA
8093: Clear Play Area
Used by the routines at GameOver, EnterRoom and GameComplete.
ClearPlayArea 8093 LD HL,$4000
8096 LD BC,$18C0
8099 XOR A
This entry point is used by the routines at DrawRoomFrame and DrawSidePanelAttrs.
ClearPlayArea_0 809A PUSH BC
809B PUSH HL
809C LD DE,$0020
ClearPlayArea_1 809F LD (HL),A
80A0 INC HL
80A1 DJNZ ClearPlayArea_1
80A3 POP HL
80A4 ADD HL,DE
80A5 POP BC
80A6 DEC C
80A7 JR NZ,ClearPlayArea_0
80A9 RET
Prev: 807A Up: Map Next: 80AA