Prev: 8A3D Up: Map Next: 8A84
8A61: Clear Menu Screen Areas
clear-screen-01
ClearMenuScreenAreas 8A61 LD HL,$5049 HL=5049 (screen buffer location).
8A64 LD C,$13 C=13.
8A66 CALL ClearScreenArea Call ClearScreenArea.
8A69 LD HL,$5069 HL=5069 (screen buffer location).
8A6C LD C,$13 C=13.
8A6E CALL ClearScreenArea Call ClearScreenArea.
clear-screen-02
ClearBottomScreenArea 8A71 LD HL,$5088 HL=5088 (screen buffer location).
8A74 LD C,$77 C=77.
This entry point is used by the routines at Print_Header, CopyBufferToScreen, 9634 and 9754.
ClearScreenArea 8A76 LD B,$08 B=08.
8A78 PUSH HL Stash HL on the stack.
ClearScreenArea_Loop 8A79 LD (HL),$00 Write 00 to *HL.
8A7B INC H Increment H by one.
8A7C DJNZ ClearScreenArea_Loop Decrease counter by one and loop back to ClearScreenArea_Loop until counter is zero.
8A7E POP HL Restore HL from the stack.
8A7F INC HL Increment HL by one.
8A80 DEC C Decrease C by one.
8A81 JR NZ,ClearScreenArea Jump to ClearScreenArea until C is zero.
8A83 RET Return.
Prev: 8A3D Up: Map Next: 8A84