Skip to navigation

Elite on the BBC Micro and NES

Version analysis of crlf

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: crlf Type: Subroutine Category: Text Summary: Tab to column 21 and print a colon
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

Code variation 1 of 2Related to Elite's use of the Tube

Tap on a block to expand it, and tap it again to revert.

LDA #21 \ Set the X-column in XC to 21 STA XC
LDA #21 \ Set the X-column in XC to 21 JSR DOXC

Code variation 2 of 2Minor and very low-impact

Tap on a block to expand it, and tap it again to revert.

BNE TT73 \ Jump to TT73, which prints a colon (this BNE is \ effectively a JMP as A will never be zero)
JMP TT73 \ Jump to TT73, which prints a colon (this BNE is \ effectively a JMP as A will never be zero)