Prev: D682 Up: Map Next: D69C
D692: Look up a word in a table
Used by the routine at EFFECT_NOTE.
Input
A the index
BC the table
Output
HL the word at BC + 2A
TABLE_WORD D692 LD L,A HL = (BC + 2 * A)
D693 LD H,$00
D695 ADD HL,HL
D696 ADD HL,BC
D697 LD A,(HL)
D698 INC HL
D699 LD H,(HL)
D69A LD L,A
D69B RET
Prev: D682 Up: Map Next: D69C