![]() |
Routines |
Prev: 49533 | Up: Map | Next: 49663 |
Used by the routines at GameEventsProcessor, Handler_DisplayRoomImage, Print_RoomDescription, Action_ExamineItem, ValidateObject, Handler_ScenicEvents and 50518.
Retrieves an address from a table using a given index.
|
||||||||||||||||
GetTableEntry | 49648 | LD D,0 | Multiply the given index by 2 and store the result in DE. | |||||||||||||
49650 | SLA E | |||||||||||||||
49652 | RL D | |||||||||||||||
49654 | ADD IX,DE | Add DE to the base table address. | ||||||||||||||
49656 | LD L,(IX+0) | Fetch the relevant table address and store it in HL. | ||||||||||||||
49659 | LD H,(IX+1) | |||||||||||||||
49662 | RET | Return. |
Prev: 49533 | Up: Map | Next: 49663 |