Skip to navigation

Elite on the BBC Micro and NES

Start and end: ResetOptions

[NES version, Bank 7]

Name: ResetOptions [Show more] Type: Subroutine Category: Start and end Summary: Reset the game options to their default values
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * SetupDemoUniverse calls ResetOptions * ShowStartScreen calls ResetOptions
.ResetOptions LDA #0 ; Configure the controller y-axis to the default STA JSTGY ; direction (i.e. not reversed) by setting JSTGY to 0 STA disableMusic ; Configure music to be enabled by default by setting ; disableMusic to 0 LDA #$FF ; Configure damping to be enabled by default by setting STA DAMP ; DAMP to $FF STA DNOIZ ; Configure sound to be enabled by default by setting ; DNOIZ to $FF RTS ; Return from the subroutine