This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Type: Subroutine Category: Utility routines Summary: The standard BRKV handler for the game
Deep dive: Swapping between the docked and flight code
This variation is blank in the Master version.
Tap on a block to expand it, and tap it again to revert.
\ When we call this routine, we know that brkd will be \ zero, as it is initialised to zero and the only other \ place it gets changed is in the TITLE routine, where \ it also gets set to 0 DEC brkd \ Set brkd = &FF to indicate that there is a system \ error that needs to be printed out on the title screen \ by the TITLE routine
This variation is blank in the Disc (docked) version.
Tap on a block to expand it, and tap it again to revert.
This variation is blank in the Disc (docked) version.
Tap on a block to expand it, and tap it again to revert.
INY \ Increment the loop counter LDA (&FD),Y \ Fetch the Y-th byte of the block pointed to by \ (&FD &FE), so that's the Y-th character of the message \ pointed to by the MOS error message pointer BNE BRBRLOOP \ If the fetched character is non-zero, loop back to the \ JSR OSWRCH above to print the it, and keep looping \ until we fetch a zero (which marks the end of the \ message)