![]()  | 
Routines | 
| Prev: 53788 | Up: Map | Next: 53815 | 
 
  | 
||||||||||||
| 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 |