![]() |
Routines |
| Prev: A280 | Up: Map | Next: A314 |
|
Used by the routines at Handler_Images, Handler_GameEvents, PrintRoomDescription, Parser_ValidateItem, ValidateObject, Handler_RunScript, Condition_GroupItemEquals, Condition_GroupItemDiffers, Condition_PhraseMatches, Condition_PhraseDoesNotMatch, Condition_ParserSucceeds, Condition_ParserFails, Handler_ScenicEvents and Handler_DispatchVerb.
Retrieves an address from a table using a given index.
|
||||||||||||||||
| GetTableEntry | A305 | LD D,$00 | Multiply the given index by 02 and store the result in DE. | |||||||||||||
| A307 | SLA E | |||||||||||||||
| A309 | RL D | |||||||||||||||
| A30B | ADD IX,DE | Add DE to the base table address. | ||||||||||||||
| A30D | LD L,(IX+$00) | Fetch the relevant table address and store it in HL. | ||||||||||||||
| A310 | LD H,(IX+$01) | |||||||||||||||
| A313 | RET | Return. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: A280 | Up: Map | Next: A314 |