.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 [View in context] Type: Subroutine [Compare versions] Category: Sound Summary: Process us making a kill Deep dive: Combat rank
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. Other entry points: EXNO-2 Set X = 7 and fall through into EXNO to make the sound of a ship exploding
[X]
Subroutine EXNO (category: Sound)
Make the sound of a laser strike or ship explosion
[X]
Entry point EXNO-2 in subroutine EXNO2 (category: Sound)
Set X = 7 and fall through into EXNO to make the sound of a ship exploding
[X]
Subroutine MESS (category: Text)
Display an in-flight message