.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 explodingName: EXNO2 [Show more] Type: Subroutine Category: Sound Summary: Process us making a kill Deep dive: Combat rankContext: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions 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.
Subroutine EXNO (category: Sound)
Make the sound of a laser strike or ship explosion
Entry point EXNO-2 in subroutine EXNO (category: Sound)
Set X = 7 and fall through into EXNO to make the sound of a ship exploding
Subroutine MESS (category: Text)
Display an in-flight message