Prev: 53731 Up: Map Next: 53871
53861: Get index of destination room for a character, load into A and update character movement routine
The instruction at 53812 is modified by this routine.
Used by the routine at 53731.
Input
A A room index
HL Points to one of the two bytes of the first entry of the room connectivity data table at 37022
Output
A New room index
53861 ADD A,A Load double room index into BC...
53862 LD C,A ...
53863 LD B,0 ...
53865 ADD HL,BC Add BC to HL as offset
53866 LD A,(HL) Load A with room index at HL...
53867 LD (53813),A ...and modify the instruction at 53812 with this value
53870 RET Return
Prev: 53731 Up: Map Next: 53871