Prev: B8ED Up: Map Next: B931
B902: Clear the room's graphics
Used by the routines at B952, ED2A, EDF7, EFC7 and F177.
B902 PUSH HL Preserve main registers.
B903 PUSH BC
B904 PUSH DE
B905 LD IX,$8248 Point IX at the table between the status bar and main screen.
B909 LD C,$98 98 rows to process.
B90B LD L,(IX+$00) Put the address in HL.
B90E LD H,(IX+$01)
B911 LD B,$20 Clear the next row.
B913 LD (HL),$00
B915 INC HL
B916 DJNZ $B913
B918 INC IX Move to the next place in the table.
B91A INC IX
B91C DEC C Loop while there are more rows to handle.
B91D JR NZ,$B90B
B91F LD HL,$58A0 Fill the relevant part of the attribute buffer with bright yellow on black.
B922 LD BC,$0260
B925 LD (HL),$46
B927 INC HL
B928 DEC BC
B929 LD A,B
B92A OR C
B92B JR NZ,$B925
This entry point is used by the routine at B931.
B92D POP DE Restore main registers and return.
B92E POP BC
B92F POP HL
B930 RET
Prev: B8ED Up: Map Next: B931