AMSTRAD CPC464 User Manual page 159

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

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 ON BREAK interrupt subroutine, ON BREAK STOP disables the
trap, but has no other immediate effect. In the above program, which includes ON BREAK STOP ,
the ON BREAK GOSUB trap will only operate once.
Associated keywords: ON BREAK GOSUB
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
7 0 G O T O 2 0 0
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: ERR, ERL, RESUME
ON SQ GOSUB
O N S Q ( < c h a n n e l > )
l i n e n u m b e r >
GOSUB <
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents