Radio Shack TRS-80 PC-4 Owner's Manual page 39

Trs-80 pc-4
Hide thumbs Also See for TRS-80 PC-4:
Table of Contents

Advertisement

b. Complete change of one line
Example:
Change
"w
=
A -
B"
on line
30
to
"w
=
V/2".
Operation:
~
[I)
• Write the new line 30.
30uW§lVIIZ.
• Confirm the program list.
~~
LIST III
I
510
P ,,:,.123456789
[
510
30 W=V/Z
READY P0
10 INPUT A.B
20 V=A*B
30 W=V/2
40
PRINT V.W
50
END
READY P0
(IDAddition
Addition may be made in line units by writing new lines between existing lines.
Example:
Add
"U = V *2"
between line numbers
30
and
40
of the previous example
and change line 40 to "PRINT V, W, U".
Operation:
~[I)
~
510
P
';f~
123456789
• Input line number 35 to make input between line numbers 30 and 40.
35uU
ElVDZIII
I
502
35 U=V*2
*
For inputting between Iine numbers 30 and 40, line numbers may be freely selected
in the range from 31 through 39.
• To change line 40, call it out using a LIST command and add ",U".
LIST
40111
502
40
PRINT V,W
500
50 END
500
·-36-

Advertisement

Table of Contents
loading

Table of Contents