Prev: 39996 Up: Map Next: 40048
40034: Reset Room Table
Used by the routine at Run_Game.
Writes 0 to 2047 bytes starting at Room_Visit_Table, which empties the room visit table.
Reset_Room_Table 40034 LD HL,24576 Point at the start of the room visit table (Room_Visit_Table).
40037 LD DE,24577 DE=24577 (the second byte of the table, which is the destination of the copy).
40040 LD BC,2047 Set the byte count to 2047.
40043 LD (HL),0 Write 0 to the first byte.
40045 LDIR Copy the byte through the rest of the area.
40047 RET Return.
Prev: 39996 Up: Map Next: 40048