Skip to navigation

Elite on the BBC Micro and NES

Version analysis of BRP

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

Code variations between these versions are shown below.

Name: BRP Type: Subroutine Category: Missions Summary: Print an extended token and show the Status Mode screen

Code variation 1 of 3A variation in the comments only

This variation is blank in the Disc (docked) and 6502 Second Processor versions.

Other entry points: BAYSTEP Go to the docking bay (i.e. show the Status Mode screen)
.BRP

Code variation 2 of 3Related to an advanced feature

The Master version shows the mission briefings in cyan, while the 6502SP version shows the text in white and rotating ship in cyan, and the disc version shows the whole thing in white.

This variation is blank in the Disc (docked) and 6502 Second Processor versions.

LDX #CYAN \ Switch to colour 3, which is white or cyan STX COL
 JSR DETOK              \ Print the extended token in A

Code variation 3 of 3A variation in the labels only

This variation is blank in the Disc (docked) and 6502 Second Processor versions.

.BAYSTEP
 JMP BAY                \ Jump to BAY to go to the docking bay (i.e. show the
                        \ Status Mode screen) and return from the subroutine
                        \ using a tail call