Skip to navigation

Aviator on the BBC Micro

Scoring: ScorePoints

Name: ScorePoints [Show more] Type: Subroutine Category: Scoring Summary: Increase the score and make a beep
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * CheckFlyingSkills (Part 2 of 2) calls ScorePoints * MainLoop (Part 10 of 15) calls ScorePoints * UpdateAliens (Part 5 of 5) calls ScorePoints

Arguments: (X A) The number of points to add to the score (in BCD), divided by 10, so adding &15 will add 150 to the score
.ScorePoints JSR UpdateScore \ Increase the score by the number of points in A LDA #3 \ Make sound #3, a long, medium beep JSR MakeSound RTS \ Return from the subroutine