Radio Shack TRS-80 Manual page 13

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

The program will then be printed out according to the following format:
< EXAMPLES and ILLUSTRATIONS of PROGRAM FORMATS>
In case a program statement exceeds
a single line (12 digits), it will be
continued on the next line.
-
1
COLON
(1 DIGIT)
LINE NUMBER
(3 DIGITS)
PROGRAM (12 DIGITS)
(1) Phythagorean theorem
(2) Quadratic equation
10:INPUT
10:"A":INPUT
"A
A?"B=H3B»
20JOJ<A*A+B*B>
Mc=";c
30s PRINT C
20:B=-B^2/A
40:END
i
30:D-B^B-C/ft
40:IF D-0G0T0 1
50: IF OOGOTO 1
20
60:Y=T<-D>
70:PRINT "**REA
L***SB
80:PRINT "IMAGI
NARY'S V
90:END
100:PRINT "EQUAL
'SB
lio:END
120:PRINT "REAL"
> B+TD
130:PRINT "REAL"
>B-TD
140:END
Note that the first three columns on the printout are reserved for line
numbers.
If the program line is greater than 12 digits, the Printer will
"wrap around" and continue printing on the next line.
12

Advertisement

Table of Contents
loading

Table of Contents