Prev: 53194 Up: Map Next: 53317
53309: Add entry to pathfinding data table for room B in direction A
B contains the room the pathfinding routine is currently looking at, and A contains a value that denotes which direction this room lies in relative to Drutt's current room.
Used by the routine at 53194.
Input
A Direction index (1 or 2)
B Index of room being examined
HL Current address of end of pathfinding data table
53309 LD (HL),A Store direction index
53310 INC HL Advance by one byte
53311 LD A,B Store index of room being examined...
53312 LD (HL),A ...
53313 INC HL Advance by one byte
53314 LD (HL),255 Store 255 (end marker)
53316 RET Return
Prev: 53194 Up: Map Next: 53317