Skip to navigation

Elite on the BBC Micro

Version analysis of BELL

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: BELL Type: Subroutine 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

Code variation 1 of 1Related to the 6502SP version

If speech is enabled in the Executive version, only the BELL routine makes a standard system beep (the CHPR routine no longer does).

Tap on a version to expand it, and tap it again to show to all variations.

Cassette, Flight, Docked, Electron



\ Fall through into the TT26 print routine to \ actually make the sound
JMP CHPR \ Call the CHPR print routine to actually make the sound
\ 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
RSS Feed