Prev: 45584 Up: Map Next: 45617
45601: Point HL at current position data for current character
Used by the routines at 43199 and 44337.
Output
HL Address of Current Character's entry in table of characters' current positions
45601 PUSH BC Store BC
45602 LD A,(41937) Load BC index of Current Character...
45605 LD C,A ...multiply by three...
45606 ADD A,A ...
45607 ADD A,C ...
45608 LD C,A ...and load into BC...
45609 LD B,0 ...
45611 LD HL,24898 Load HL with start address of table of characters' current positions...
45614 ADD HL,BC ...and add BC as offset
45615 POP BC Restore BC
45616 RET Return
Prev: 45584 Up: Map Next: 45617