Prev: 49770 Up: Map Next: 49941
49922: Get Room Pointer
Used by the routines at Handler_RoomExits and MovePlayer.
Output
HL Pointer to the room data
GetRoomPointer 49922 LD A,(48331) Load the *CurrentRoom into DE.
49925 LD E,A
49926 LD D,0
49928 LD H,D Copy it into HL.
49929 LD L,E
49930 ADD HL,DE Mulitply by 6.
49931 ADD HL,DE
49932 ADD HL,DE
49933 ADD HL,DE
49934 ADD HL,DE
49935 LD DE,(48400) Add the result to the base address *Pointer_RoomMap, stored in HL.
49939 ADD HL,DE
49940 RET Return.
Prev: 49770 Up: Map Next: 49941