Prev: 45939 Up: Map Next: 46080
46065: Get Table Entry
Look up one entry in a word table.
Input
E Index of item
IX Base table address
Output
HL Address from the relevant table entry
IX Address of the table entry
GetTableEntry 46065 LD D,0 Double the entry index so it addresses a word in the table.
46067 SLA E
46069 RL D
46071 ADD IX,DE Step to the chosen entry in the word table.
46073 LD L,(IX+0) Read the address stored in that entry.
46076 LD H,(IX+1)
46079 RET Return.
Prev: 45939 Up: Map Next: 46080