54283: Move entity at IX into new room (left or right) if it is at the edge of its current room
54283 |
LD A,(34235) |
54286 |
DEC A |
54287 |
DEC A |
54288 |
CP (IX+5) |
54291 |
JR C,54306 |
54293 |
LD A,(IX+7) |
54296 |
CP 102 |
54298 |
RET NC |
54299 |
CALL 54539 |
54302 |
CALL 54419 |
54305 |
RET |
54306 |
CALL 54505 |
54309 |
CALL 54383 |
54312 |
RET |