Skip to navigation

Elite on the BBC Micro

Flight: hy6

[BBC Master version]

Name: hy6 [Show more] Type: Subroutine Category: Flight Summary: Print a message to say no hyperspacing inside the station
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: * hyp calls hy6

Print "Docked" at the bottom of the screen to indicate we can't hyperspace when docked.
.hy6 JSR CLYNS \ Clear the bottom three text rows of the upper screen, \ and move the text cursor to column 1 on row 21, i.e. \ the start of the top row of the three bottom rows LDA #15 \ Move the text cursor to column 15 (the middle of the STA XC \ screen), setting A to 15 at the same time for the \ following call to TT27 LDA #RED \ Switch to colour 2, which is magenta in the trade view STA COL \ or red in the chart view LDA #205 \ Print extended token 205 ("DOCKED") and return from JMP DETOK \ the subroutine using a tail call