.BEEP LDA #32 \ Call NOISE with A = 32 to make a short, high beep, BNE NOISE \ returning from the subroutine using a tail call (this \ BNE is effectively a JMP as A will never be zero)
[X]
Subroutine NOISE (category: Sound)
Make the sound whose number is in A