54539: Load B with index of room to left of an entity's current room
54539 |
LD D,(IX+0) |
54542 |
LD IY,(34250) |
54546 |
INC IY |
54548 |
LD A,(IY+0) |
54551 |
CP 255 |
54553 |
RET Z |
54554 |
CP D |
54555 |
JR NZ,54563 |
54557 |
LD B,(IY-1) |
54560 |
CP 255 |
54562 |
RET |
54563 |
INC IY |
54565 |
INC IY |
54567 |
JR 54548 |