Skip to navigation

Elite on the BBC Micro

Text: ee3 (Master version)

Name: ee3 [View in context] Type: Subroutine [Compare versions] Category: Text Summary: Print the hyperspace countdown in the top-left of the screen
5 digits, left-padding with spaces for numbers with fewer than 3 digits (so numbers < 10000 are right-aligned), with no decimal point. Arguments: X The number to print
.ee3 LDA #RED \ Switch to colour 2, which is red in the space view STA COL LDA #1 \ Move the text cursor to column 1 STA XC STA YC \ Move the text cursor to row 1 LDY #0 \ Set Y = 0 for the high byte in pr6 CLC \ Call TT11 to print X to 3 digits with no decimal point LDA #3 \ and return from the subroutine using a tail call JMP TT11