Skip to navigation

Elite on the BBC Micro

Sound: EXNO2, Removed [Elite-A, Docked]

Name: EXNO2, Removed [Show more] Type: Subroutine Category: Sound Summary: Process us making a kill Deep dive: Combat rank
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file

We have killed a ship, so increase the kill tally, displaying an iconic message of encouragement if the kill total is a multiple of 256, and then make a nearby explosion sound.
\ --- Mod: Original Acornsoft code removed: -----------> \.EXNO2 \ INC TALLY \ Increment the low byte of the kill count in TALLY \ BNE EXNO-2 \ If there is no carry, jump to the LDX #7 below (at \ \ EXNO-2) \ INC TALLY+1 \ Increment the high byte of the kill count in TALLY \ LDA #101 \ The kill total is a multiple of 256, so it's time \ JSR MESS \ for a pat on the back, so print recursive token 101 \ \ ("RIGHT ON COMMANDER!") as an in-flight message \ LDX #7 \ Set X = 7 and fall through into EXNO to make the \ \ sound of a ship exploding \ --- End of removed code ----------------------------->