.TT110 LDX #63 \ Before loading the flight code, we need to copy the \ two-letter token table from QQ16 to QQ16_FLIGHT, so \ we set a counter in X for the 64 bytes in the table .eny1 LDA QQ16,X \ Copy the X-th byte of QQ16 to the X-th byte of STA QQ16_FLIGHT,X \ QQ16_FLIGHT DEX \ Decrement the loop counter BPL eny1 \ Loop back to copy the next byte until we have copied \ the whole table JSR CATD \ Call CATD to reload the disc catalogue LDX #LO(RDLI) \ Set (Y X) to point to RDLI ("R.D.CODE") LDY #HI(RDLI) JMP OSCLI \ Call OSCLI to run the OS command in RDLI, which *RUNs \ the main flight code in D.CODE, returning from the \ subroutine using a tail callName: TT110 [View in context] Type: Subroutine Category: Flight Summary: Launch from a station or show the front space view
Launch the ship (if we are docked), or show the front space view (if we are already in space). Called when red key f0 is pressed while docked (launch), after we arrive in a new galaxy, or after a hyperspace if the current view is a space view.
[X]
Configuration variable: CATD = &0D7A
The address of the CATD routine that is put in place by the third loader, as set in elite-loader3.asm
[X]
Configuration variable: OSCLI = &FFF7
The address for the OSCLI routine
[X]
Variable QQ16 (category: Text)
The two-letter token lookup table
[X]
Configuration variable: QQ16_FLIGHT = &0880
The address of the two-letter text token table in the flight code (this gets populated by the docked code at the start of the game)
[X]
Variable RDLI (category: Loader)
The OS command string for loading the flight code file D.CODE
[X]
Label eny1 is local to this routine