Radio Shack TRS-80 PC-3 Owner's Manual page 119

Table of Contents

Advertisement

1 BEEP expression
Abbreviations:
B., BE., BEE.
Purpose
The BEEP verb is used to produce an audible tone.
Use
The BEEP verb causes the PC-3 Computer to emit one or more audible tones at 4 kHz. The number of beeps is determined by the
expression, which must be numeric. The expression is evaluated, but only the integer part is used to determine the number of
beeps.
BEEP may also be used as a command using numeric literals and predefined variables. In this case, the beeps occur immediately
after the
(ENTER)
key is pressed.
B$
=
"9"
Produces 3 beeps.
Produces 5 beeps.
Produces 4 beeps.
This is illegal and will produce an ERROR 9 message.
Produces no beeps, but does not produce an error message.
Examples
1(1
A=5 :
20 BEEP 3
30 BEEP A
40 BEEP (A+4)/2
50 BEEP B$
60 BEEP-4
119

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents