Prev: C738 Up: Map Next: C766
C75C: Get Table Entry
Input
A The number of the entry
BC The address of the table
Output
HL The word from the table
Find the address of the entry.
GetTableEntry C75C LD L,A Put the number of the entry in HL.
C75D LD H,$00
C75F ADD HL,HL Double it.
C760 ADD HL,BC Add the address of the table.
Fetch the word.
C761 LD A,(HL) Fetch the low byte.
C762 INC HL Move on to the high byte.
C763 LD H,(HL) Fetch it into H.
C764 LD L,A Put the low byte in L and return.
C765 RET
View the equivalent code in;
Prev: C738 Up: Map Next: C766