Skip to navigation

Elite on the BBC Micro

Text: ee3 (Disc version)

Name: ee3 [View in context] Type: Subroutine [Compare versions] Category: Text Summary: Print the hyperspace countdown in the top-left of the screen
Print the 8-bit number in X at text location (1, 1). Print the number to 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 LDY #1 \ Move the text cursor to column 1 STY XC STY YC \ Move the text cursor to row 1 DEY \ Decrement Y to 0 for the high byte in pr6 \ Fall through into pr6 to print X to 5 digits, as the \ high byte in Y is 0