Prev: 54897 Up: Map Next: 54968
54924: Print Location Exits With Formatting
Used by the routine at ProcessLocationTokenDisplay.
Input
A Room ID
PrintLocationExitsWithFormatting 54924 PUSH IX Stash IX, IY, DE and BC on the stack.
54926 PUSH IY
54928 PUSH DE
54929 PUSH BC
54930 CALL GetLocationExitData Call GetLocationExitData.
54933 CALL FindNextValidExit Call FindNextValidExit.
54936 JR Z,PrintLocationExitsWithFormatting_1 Jump to PrintLocationExitsWithFormatting_1 if the zero flag is not set.
54938 LD HL,26865 HL=26865.
54941 CALL PrintTextAndHandleControlCharacters Call PrintTextAndHandleControlCharacters.
PrintLocationExitsWithFormatting_0 54944 LD A,(IX+0) A=*IX+0.
54947 CALL GetDirectionToken Call GetDirectionToken.
54950 CALL PrintTextToken Call PrintTextToken.
54953 CALL FindNextValidExit Call FindNextValidExit.
54956 JR NZ,PrintLocationExitsWithFormatting_0 Jump to PrintLocationExitsWithFormatting_0 if the zero flag is not set.
54958 CALL ProcessObject_Display_5 Call ProcessObject_Display_5.
PrintLocationExitsWithFormatting_1 54961 POP BC Restore BC, DE, IY and IX from the stack.
54962 POP DE
54963 POP IY
54965 POP IX
54967 RET Return.
Prev: 54897 Up: Map Next: 54968