Tandy 1000 Basic Reference Manual page 239

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC Keywords
Therefore, select conservative values for the trap num-
ber. For example, if number is set at 32, event traps
might happen so often that there is little time t o exe-
cute the rest of your program.
It
is suggested that the
trap number be less than 16 for better performance.
Example
1 0 P L A Y
ON
2 0 ON P L A Y ( 2 )
G O S U B
3 0 REM
5 0 0 E N D
1 0 0 0 REM P R O C E S S I N G
1 1 0 0 R E T U R N 3 0
1 0 0 0
R O U T I N E
Line 10 turns on play trapping. After each program statement is
executed,
BASIC
checks t o see if the number of notes in the mu-
sic buffer is less than 2 notes. If it is, BASIC immediately exe-
cutes the subroutine at Line 1000.
237

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents