Prev: C17D Up: Map Next: C1FF
C1F0: 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 C1F0 LD D,$00 Multiply the given index by 02 and store the result in DE.
C1F2 SLA E
C1F4 RL D
C1F6 ADD IX,DE Add DE to the base table address.
C1F8 LD L,(IX+$00) Fetch the relevant table address and store it in HL.
C1FB LD H,(IX+$01)
C1FE RET Return.
Prev: C17D Up: Map Next: C1FF