Skip to navigation

Elite on the BBC Micro

Version analysis of hy6 / dockEd

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

Code variations between these versions are shown below.

Code variation 1 of 5A variation in the comments only

This variation is blank in the Master version.

Tap on a version to expand it, and tap it again to show to all variations.

Cassette, Electron

6502SP

Name: hy6
Name: dockEd
Type: Subroutine Category: Flight Summary: Print a message to say no hyperspacing inside the station
Print "Docked" at the bottom of the screen to indicate we can't hyperspace when docked.

Code variation 2 of 5A variation in the labels only

Tap on a version to expand it, and tap it again to show to all variations.

Cassette, Master, Electron

6502SP

.hy6
.dockEd
 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

Code variation 3 of 5Related to Elite's use of the Tube

Tap on a version to expand it, and tap it again to show to all variations.

Cassette, Master, Electron

6502SP

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 #15 \ Move the text cursor to column 15 JSR DOXC

Code variation 4 of 5Related to the screen mode

This variation is blank in the Cassette and Electron versions.

Tap on a version to expand it, and tap it again to show to all variations.

Master

6502SP

LDA #RED \ Switch to colour 2, which is magenta in the trade view STA COL \ or red in the chart view
LDA #RED \ Send a #SETCOL RED command to the I/O processor to JSR DOCOL \ switch to colour 2, which is magenta in the trade view \ or red in the chart view

Code variation 5 of 5Minor and very low-impact

Tap on a version to expand it, and tap it again to show to all variations.

Cassette, Electron

6502SP, Master

JMP TT27 \ Print recursive token 129 ("{sentence case}DOCKED") \ and return from the subroutine using a tail call
LDA #205 \ Print extended token 205 ("DOCKED") and return from JMP DETOK \ the subroutine using a tail call
RSS Feed