Prev: 41375 Up: Map Next: 41395
41386: Get Table Entry
Input
C Index
HL Address of the table
Output
HL The word
GetTableEntry 41386 LD B,0 Clear B.
41388 ADD HL,BC Add the index twice to get the address of the entry.
41389 ADD HL,BC
41390 LD A,(HL) Fetch the low byte.
41391 INC HL Move on to the high byte.
41392 LD H,(HL) Fetch the high byte.
41393 LD L,A Put the low byte in L.
41394 RET Return.
Prev: 41375 Up: Map Next: 41395