Skip to navigation


Main loop: MainLoop (Part 9 of 15)

Name: MainLoop (Part 9 of 15) [Show more] Type: Subroutine Category: Main loop Summary: Fill up the tank if the engine is switched off, and process the volume keys 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
.main14 LDA engineStatus \ If the engine is on, jump to main15 to skip the BNE main15 \ following instruction JSR FillUpFuelTank \ Fill up the fuel tank by one unit .main15 JSR ProcessVolumeKeys \ Check the volume keys and adjust the sound volume \ accordingly