![]()  | 
Routines | 
| Prev: 43786 | Up: Map | Next: 43927 | 
| 
 
Used by the routines at GameEventsProcessor, Handler_DisplayRoomImage, Print_RoomDescription, Parser_ValidateItem, ValidateObject, Handler_ScenicEvents, Handler_MatchVerb and EventRouting.
 
Retrieves an address from a table using a given index.
 
 
  | 
||||||||||||||||
| GetTableEntry | 43912 | LD D,0 | Multiply the given index by 2 and store the result in DE. | |||||||||||||
| 43914 | SLA E | |||||||||||||||
| 43916 | RL D | |||||||||||||||
| 43918 | ADD IX,DE | Add DE to the base table address. | ||||||||||||||
| 43920 | LD L,(IX+0) | Fetch the relevant table address and store it in HL. | ||||||||||||||
| 43923 | LD H,(IX+1) | |||||||||||||||
| 43926 | RET | Return. | ||||||||||||||
| 
 
View the equivalent code in The Jewels Of Babylon.
 
 | 
||||||||||||||||
| Prev: 43786 | Up: Map | Next: 43927 |