Prev: A0C8 Up: Map Next: A138
A124: Step to the next open way out
Used by the routine at VISIBLE_EXITS.
One that goes through nothing, and has not been wiped -- NEW_GAME_CHOICES leaves a shut road with a direction of 0.
Input
IX The last exit, or EXITS_OF's pointer
Output
IX The next open exit
F Z at the end
NEXT_OPEN_EXIT A124 ADD IX,BC
A126 LD A,$FF
A128 CP (IX+$00)
A12B RET Z
A12C XOR A
A12D CP (IX+$01)
A130 JR NZ,NEXT_OPEN_EXIT
A132 CP (IX+$00)
A135 JR Z,NEXT_OPEN_EXIT
A137 RET
Prev: A0C8 Up: Map Next: A138