Skip to navigation

Elite on the BBC Micro and NES

Sound: ECMOF

[NES version, Bank 0]

Name: ECMOF [Show more] Type: Subroutine Category: Sound Summary: Switch off the E.C.M.
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FlightLoop4To16 calls ECMOF * RES2 calls ECMOF

Switch the E.C.M. off, turn off the dashboard bulb and make the sound of the E.C.M. switching off).
.ECMOF LDA #0 ; Set ECMA and ECMP to 0 to indicate that no E.C.M. is STA ECMA ; currently running STA ECMP LDY #2 ; Flush the sound channels for sound Y = 2 to stop the JMP FlushSpecificSound ; sound of the E.C.M. and return from the subroutine ; using a tail call