![]()  | 
Routines | 
| Prev: A280 | Up: Map | Next: A314 | 
| 
 
Used by the routines at Handler_Images, A280, A42F, Parser_ValidateItem, ValidateObject, A6FF, A898, A8B2, A8F9, A90D, A924, A947, Handler_ScenicEvents and ACFC.
 
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 |