Prev: 53788 Up: Map Next: 53815
53796: Fetch Location Data Pointer
Used by the routines at 40447, 42155, 50385, 51439, 53469, 53506, 54076, 54122, 54767 and 56428.
Input
A Room ID
Output
IX Pointer to location data
FetchLocationDataPointer 53796 PUSH DE Stash DE on the stack.
53797 LD DE,33803 Load Table_Locations into DE.
53800 PUSH HL Stash HL on the stack.
53801 LD L,A Load the room ID into HL.
53802 LD H,0
53804 ADD HL,HL Double the offset value held in HL.
53805 ADD HL,DE Add the base table address to the offset to point to the requested room address.
53806 LD E,(HL) Fetch the location data address and store the pointer in IX.
53807 INC HL
53808 LD D,(HL)
53809 PUSH DE
53810 POP IX
53812 POP HL Restore HL and DE from the stack.
53813 POP DE
53814 RET Return.
Prev: 53788 Up: Map Next: 53815