Skip to navigation

Elite on the BBC Micro

Sound: BELL (6502SP version)

Name: BELL [View in context] Type: Subroutine [Compare versions] Category: Sound Summary: Make a standard system beep
This is the standard system beep as made by the VDU 7 statement in BBC BASIC.
.BELL LDA #7 \ Control code 7 makes a beep, so load this into A \ Fall through into the CHPR print routine to \ actually make the sound IF _EXECUTIVE BNE CHPRD \ Jump down to CHPRD to actually make the sound, \ skipping the code that prevents CHPR from beeping if \ speech is enabled, so the beep gets made even if \ speech is enabled (this BNE is effectively a JMP as \ A is never 0) ENDIF