This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
.TT18Name: TT18 Type: Subroutine Category: Flight Summary: Try to initiate a jump into hyperspace
Try to go through hyperspace. Called from TT102 in the main loop when the hyperspace countdown has finished.
If infinite jump range is enabled in the Executive version, no fuel is used for jumping.
See below for more variations related to this code.
Tap on a block to expand it, and tap it again to revert.
This might be a bug fix? The 6502SP version makes sure we don't end up with a negative fuel amount should we try a hyperspace jump that we don't have enough fuel for, though quite how we would get to this point is not clear.
This variation is blank in the Cassette, Disc (flight) and Electron versions.
BCS P%+4 \ If the subtraction didn't overflow, skip the next \ instruction LDA #0 \ The subtraction overflowed, so set A = 0 so we don't \ end up with a negative amount of fuel
STA QQ14 \ Store the updated fuel amount in QQ14
Code variation 3 of 10
See variation 1 above for details.
This variation is blank in the Cassette, Disc (flight), Master and Electron versions.
LDA QQ11 \ If the current view is not a space view, jump to ee5 BNE ee5 \ to skip the following JSR TT66 \ Clear the top part of the screen, draw a border box, \ and set the current view type in QQ11 to 0 (space \ view) JSR LL164 \ Call LL164 to show the hyperspace tunnel and make the \ hyperspace sound .ee5
This variation is blank in the Electron version.
Tap on a block to expand it, and tap it again to revert.
The Electron version doesn't support witchspace, so the code for triggering a manual mis-jump is missing.
Tap on a block to expand it, and tap it again to revert.
In the cassette and Electron versions, hyp1 doesn't fall through into GVL, so we need to call it.
This variation is blank in the Disc (flight), 6502 Second Processor and Master versions.
JSR GVL \ Calculate the availability for each market item in the \ new system
JSR RES2 \ Reset a number of flight variables and workspaces
\JSR CATLOD \ These instructions are commented out in the original \JSR LOMOD \ source
This variation is blank in the Cassette, 6502 Second Processor, Master and Electron versions.
JSR LOMOD \ Call LOMOD to load a new ship blueprints file
JSR TTX66 \ Otherwise clear the screen and draw a border box LDA QQ11 \ If the current view is one of the charts, jump to BNE TT114 \ TT114 (from which we jump to the correct routine to \ display the chart) INC QQ11 \ This is a space view, so increment QQ11 to 1 \ Fall through into TT110 to show the front space view