Prev: 49533 Up: Map Next: 49663
49648: Get Table Entry
Retrieves an address from a table using a given index.
Input
E Index of item
IX Base table address
Output
HL Address from the relevant table entry
IX Address of the table entry
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