Prev: A19F Up: Map Next: A1B3
A1AA: Get Table Entry
Input
C Index
HL Address of the table
Output
HL The word
GetTableEntry A1AA LD B,$00 Clear B.
A1AC ADD HL,BC Add the index twice to get the address of the entry.
A1AD ADD HL,BC
A1AE LD A,(HL) Fetch the low byte.
A1AF INC HL Move on to the high byte.
A1B0 LD H,(HL) Fetch the high byte.
A1B1 LD L,A Put the low byte in L.
A1B2 RET Return.
Prev: A19F Up: Map Next: A1B3