Skip to navigation

Elite on the BBC Micro and NES

Text: crlf

[BBC Micro disc version, Docked]

Name: crlf [Show more] Type: Subroutine Category: Text Summary: Tab to column 21 and print a colon
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * TT27 calls crlf

Print control code 9 (tab to column 21 and print a colon). The subroutine name is pretty misleading, as it doesn't have anything to do with carriage returns or line feeds.
.crlf LDA #21 \ Set the X-column in XC to 21 STA XC BNE TT73 \ Jump to TT73, which prints a colon (this BNE is \ effectively a JMP as A will never be zero)