![]() |
Routines |
| Prev: 54897 | Up: Map | Next: 54968 |
|
Used by the routine at 53624.
Prints the exit lead-in and then each valid way out of the room.
|
||||||||
| PrintLocationExitsWithFormatting | 54924 | PUSH IX | Call GetLocationExitData to get location exit data. | |||||
| 54926 | PUSH IY | |||||||
| 54928 | PUSH DE | |||||||
| 54929 | PUSH BC | |||||||
| 54930 | CALL GetLocationExitData | |||||||
| 54933 | CALL FindNextValidExit | Go to PrintLocationExitsWithFormatting_Next if there is no further exit. | ||||||
| 54936 | JR Z,PrintLocationExitsWithFormatting_Next | |||||||
| 54938 | LD HL,26865 | Take the exits message, then call PrintTextAndHandleControlCharacters to print the exits message. | ||||||
| 54941 | CALL PrintTextAndHandleControlCharacters | |||||||
| PrintLocationExitsWithFormatting_Loop | 54944 | LD A,(IX+0) | Call GetDirectionToken to get direction token. | |||||
| 54947 | CALL GetDirectionToken | |||||||
| 54950 | CALL PrintTextToken | Jump back to PrintLocationExitsWithFormatting_Loop while another exit is valid. | ||||||
| 54953 | CALL FindNextValidExit | |||||||
| 54956 | JR NZ,PrintLocationExitsWithFormatting_Loop | |||||||
| 54958 | CALL PrintFullStop | Call PrintFullStop to print a full stop. | ||||||
| PrintLocationExitsWithFormatting_Next | 54961 | POP BC | Restore the saved count, the saved source, the saved schedule entry and the saved character record from the stack. | |||||
| 54962 | POP DE | |||||||
| 54963 | POP IY | |||||||
| 54965 | POP IX | |||||||
| 54967 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 54897 | Up: Map | Next: 54968 |