Prev: 42212 Up: Map Next: 43031
43012: Controller: Draw Room
Used by the routine at PrintStatusBar.
On a new game, the game starts with the room ID being 0 (which isn't a valid room ID; InitialiseGameStates). The reason is that it chooses between these two set up routines here (and corrects the starting room ID in UnpackAllRooms).
Controller_DrawRoom 43012 LD A,(23507) Call UnpackAllRooms if *CurrentRoom is 0.
43015 CP 0
43017 PUSH AF
43018 CALL Z,UnpackAllRooms
Handle all other room IDs.
43021 POP AF Call UnpackRoom if *CurrentRoom was not equal to 0.
43022 CALL NZ,UnpackRoom
43025 CALL PopulateCurrentRoomBuffersAndReferences Call PopulateCurrentRoomBuffersAndReferences.
43028 JP DrawRoom Jump to DrawRoom.
Prev: 42212 Up: Map Next: 43031