Tandy 1000 Basic Reference Manual page 129

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chawter 10 I
BASIC
Kevwords
CONT
Statement
CONT
Resumes program execution.
You may only use CONT if the program has been stopped by
[CTRL] [BREAK] or the execution of a STOP or an END statement.
CONT is primarily a debugging tool. During a break or stop in
execution, you may examine variable values (using PRINT) or
change these values. Then type CONT
(ENTER]
to continue execu-
tion with the new variable values.
You cannot use CONT after editing your program lines or other-
wise changing your program. CONT is also invalid after execu-
tion has ended normally.
See the
STOP
statement to terminate execution and the GOT0
statement to begin execution a t a specific line number.
Example
1 0 I N P U T "ENTER
3 NUMBERS a , b , c " ; A ,
B ,
C
2 0 K = A " 2
3 0 L = B A 3 / . 2 6
4 0 S T O P
5 0 M = C + 4 0 * K + 1 0 0 :
P R I N T M
Run this program. BASIC prompts for 3 numbers. Type:
1 , 2 ,
3
(ENTERJ
The computer displays "Break in
40."
You can now enter
a BASIC statement as a command. For example:
P R I N T L
[ENTER]
displays 30.76923. You can also change the value of A,
B,
or C.
For example, to change the value of C, type:
c = 4
Now type:
CONT
[ENTER]
and BASIC displays
144.
127

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents