Skip to navigation

Elite on the BBC Micro and NES

Flight: dockEd

[NES version, Bank 0]

Name: dockEd [Show more] Type: Subroutine Category: Flight Summary: Print a message to say there is no hyperspacing allowed inside the station
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * GalacticHyperdrive calls dockEd * hyp calls dockEd

Print "Docked" at the bottom of the screen to indicate we can't hyperspace when docked.
.dockEd JSR CLYNS ; Clear the bottom two 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 two 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 #205 ; Print extended token 205 ("DOCKED") and return from JMP DETOK_b2 ; the subroutine using a tail call