![]() |
Routines |
Prev: C17D | Up: Map | Next: C1FF |
Used by the routines at GameEventsProcessor, Handler_DisplayRoomImage, Print_RoomDescription, Action_ExamineItem, ValidateObject, Handler_ScenicEvents and C556.
Retrieves an address from a table using a given index.
|
||||||||||||||||
GetTableEntry | C1F0 | LD D,$00 | Multiply the given index by 02 and store the result in DE. | |||||||||||||
C1F2 | SLA E | |||||||||||||||
C1F4 | RL D | |||||||||||||||
C1F6 | ADD IX,DE | Add DE to the base table address. | ||||||||||||||
C1F8 | LD L,(IX+$00) | Fetch the relevant table address and store it in HL. | ||||||||||||||
C1FB | LD H,(IX+$01) | |||||||||||||||
C1FE | RET | Return. |
Prev: C17D | Up: Map | Next: C1FF |