Prev: 41786 Up: Map Next: 42031
42012: Get Room Pointer
Used by the routines at Handler_RoomExits and MovePlayer.
Output
HL Pointer to the room data
GetRoomPointer 42012 PUSH DE Stash DE on the stack.
42013 LD A,(41222) Load the *CurrentRoom into HL.
42016 LD L,A
42017 LD H,0
42019 LD DE,6 DE=0006.
42022 CALL 41325 Call 41325.
42025 LD DE,47325 Add the result to the base address Table_RoomMap and store the result in HL.
42028 ADD HL,DE
42029 POP DE Restore DE from the stack.
42030 RET Return.
View the equivalent code in;
Prev: 41786 Up: Map Next: 42031