Prev: 55726 Up: Map Next: 55740
55730: Load address with index A in a list of addresses at HL into HL
Used by the routines at 27762, 28264, 54505 and 55726.
Input
A Index of required entry in list (0 is first)
HL Address of start of list
Output
HL A-th address in list at HL (input)
55730 ADD A,A Double offset value...
55731 LD D,0 ...and load into DE...
55733 LD E,A ...
55734 ADD HL,DE Add doubled offset to address in HL
This entry point is used by the routines at 28785, 29036 and 54411.
55735 LD A,(HL) Load address at HL into HL...
55736 INC HL ...
55737 LD H,(HL) ...
55738 LD L,A ...
55739 RET Return
Prev: 55726 Up: Map Next: 55740