Skip to navigation

Sound: BELL

[6502 Second Processor version]

Name: BELL [Show more] Type: Subroutine Category: Sound Summary: Make a standard system beep
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * DKS3 calls BELL

This is the standard system beep, as made by the ASCII 7 "BELL" control code.
.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