Prev: B373 Up: Map Next: B400
B3F1: 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 B3F1 LD D,$00 Double the entry index so it addresses a word in the table.
B3F3 SLA E
B3F5 RL D
B3F7 ADD IX,DE Step to the chosen entry in the word table.
B3F9 LD L,(IX+$00) Read the address stored in that entry.
B3FC LD H,(IX+$01)
B3FF RET Return.
Prev: B373 Up: Map Next: B400