Prev: AB0A Up: Map Next: AB97
AB88: 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 AB88 LD D,$00 Multiply the given index by 02 and store the result in DE.
AB8A SLA E
AB8C RL D
AB8E ADD IX,DE Add DE to the base table address.
AB90 LD L,(IX+$00) Fetch the relevant table address and store it in HL.
AB93 LD H,(IX+$01)
AB96 RET Return.
Prev: AB0A Up: Map Next: AB97