Skip to navigation


Main loop: Main flight loop (Part 16 of 16)

[NES version, Bank 0]

Name: Main flight loop (Part 16 of 16) [Show more] Type: Subroutine Category: Main loop Summary: Call stardust routine Deep dive: Program flow of the main game loop
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file

The main flight loop covers most of the flight-specific aspects of Elite. This section covers the following: * Jump to the stardust routine if we are in a space view * Return from the main flight loop
.MA23 LDA QQ11 ; If this is not the space view (i.e. QQ11 is non-zero) BNE MA232 ; then jump to MA232 to return from the main flight loop ; (as MA232 is an RTS) JMP STARS_b1 ; This is a space view, so jump to the STARS routine to ; process the stardust, and return from the main flight ; loop using a tail call