Prev: A054 Up: Map Next: A094
A068: List the visible exits
Prints 'visible exits are :' followed by the direction of every exit that has no door (A054), or nothing at all if there are none.
A068 PUSH IX
A06A PUSH IY
A06C PUSH DE
A06D PUSH BC
A06E CALL $9FDE IX = the room's exits
A071 CALL $A054 Find the first exit without a door
A074 JR Z,$A08D None: print nothing
A076 LD HL,$AF12 "visible exits are :"
A079 CALL $72D4
A07C LD A,(IX+$00) A = the exit's direction
A07F CALL $9FEA DE = its word
A082 CALL $74B8 Print it
A085 CALL $A054 Next exit without a door
A088 JR NZ,$A07C Loop
A08A CALL $7578 New line
A08D POP BC
A08E POP DE
A08F POP IY
A091 POP IX
A093 RET
Prev: A054 Up: Map Next: A094