ON BREAK STOP
O N B R E A K S T O P
1 0 O N B R E A K G O S U B 4 0
2 0 P R I N T " p r o g r a m r u n n i n g "
3 0 G O T 0 2 0
4 0 C L S
5 0 P R I N T " p r e s s i n g [ E S C ] t w i c e c a l l s G O S U B
r o u t i n e "
6 0 F O R t = l T O 2 0 0 0 : N E X T
6 5 O N B R E A K S T O P
7 0 R E T U R N
COMMAND: When issued in an
O N BREAK
interrupt subroutine,
O N B R E A K S T O P
disables the
trap, but has no other immediate effect. In the above program, which includes
O N B R E A K S T O P
,
the
O N B R E A K G O S U B
trap will only operate once.
Associated keywords:
O N B R E A K G O S U B
ON ERROR GOTO
O N E R R O R G O T O < l i n e n u m b e r >
1 0 O N E R R O R G O T 0 E R R O R G O T 0 8 0
20 CLS
3 0 P R I N T " i f t h e r e i s a n e r r o r , I w o u l d "
4 0 P R I N T " l i k e t h e p r o g r a m l i s t e d , s o t h a t "
50 PRIN T " I c a n s e e w h e r e I w e n t w r o n g "
6 0 F O R t = l T O 4 0 0 0 : N E X T
70 GOTO 200
8 0 C L S : P R I N T " T H E R E I S A N E R R O R I N L I N E " ; E R L : P R I N T
9 0 L I S T
COMMAND: Go to
a specified line number in the program on detecting an error. In this example,
an error will be found in line 70.
Associated keywords:
E R R , E R L , R E S U M E
ON SQ GOSUB
O N S Q ( < c h a n n e l > )
GOSUB <
line number>
O N S Q ( 2 )
G O S U B 2 0 0 0
COMMAND: Enable an interrupt for when there is a free slot in the given sound queue. The
<channel> is an integer expression yielding one of the values:
1: for channel A
2: for channel B
4: for channel C
Associated keywords:
SOUND, SQ
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...