Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
Tandy Manuals
Desktop
TRS-80 Model II
Owner manual & programming manual
Tandy TRS-80 Owner Manual & Programming Manual page 40
Color computer disk system
Hide thumbs
Also See for TRS-80
:
Technical reference manual
(204 pages)
,
Service manual
(60 pages)
,
Owner's manual
(16 pages)
1
2
3
4
5
6
Table Of Contents
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
page
of
104
Go
/
104
Contents
Table of Contents
Bookmarks
Table of Contents
Advertisement
CHANGING
IT
ALL
AROUND
SO
IF
X*
=
""
THEN
X$
=
90
WRITE
*1
i
X*
A$
RUN
the
program.
As
soon
as the
Computer
gets
to line 90,
it
prints:
?FM
ERROR
IN
90
LIST
the
program. Line 10 opens
buffer
#1
to
input
data.
Line
90,
however,
is
attempting
to
out-
put data
to
buffer
#1.
The Computer
won't output
data
to
a buffer
opened
for input.
This
is
where
the additional buffer
becomes
handy. To output
your changed data
to
the
disk,
you can open another
buffer
for
output.
Add
these
lines:
15
OPEN
"0"
.
*2,
"NEW/DAT"
90
WRITE
»2* X*
120
CLOSE
»2
RUN
the
program.
Change
"COW"
to
"GIRAFFE"
This
is
the
way
the entire
program
looks:
10
OPEN
"I".
«1
.
"ANIMALS/DAT"
15
OPEN
"0"
.
«2.
"NEW/DAT"
20
IF
EOFt
1)
=
-1
THEN
110
30 INPUT
81
,
A*
40 CLS
:
PRINT
@
10E,
"DATA ITEM
:"
A$
50 PRINT
@
451. "PRESS
<ENTER>
IF
NO
CHANGE"
;
S0 PRINT
@
2G3» "CHANGE
:
"
i
70
INPUT X*
B0 IF
X$
=
""
THEN
X*
=
A*
90
WRITE 82. K$
100
GOTO 20
110
CLOSE
»1
120
CLOSE
*2
Line
10
OPENs
communication
to
buffer
#1
for
input
from
a disk
file
named "ANIMALS/DAT."
Line
15
OPENs
communication
to
buffer
#2
for
output
to
a disk
file
named "NEW/DAT:
7
Line 30
inputs
A$
from
buffer
#1. Line
70
allows
you
to
INPUT
X|,
which
will
replace
A$.
If
you
input X$,
line
90
outputs
it.
Line 90
outputs
X$
to
buffer
#2, which,
in
turn,
WRITEs
it
to
"NEW/
DAT!'
Line 110
CLOSEs
communication
to
buffer
#1
and
line
120
CLOSEs
communication
to
#2.
Now
you have two
files.
"ANIMALS/DAT"
con-
tains
the
old
data
and
"NEW/DAT"
contains the
new.
Add
these
lines to
the
program and
RUN
it:
130
KILL "ANIMALS/DAT"
140
RENAME "NEW/DAT"
TO
"ANIMALS/DAT"
Now
the
old
"ANIMALS/DAT"
file is
deleted
from
the disk
and
the
"NEW/DAT"
file
has been
renamed
to
"ANIMALS/DAT."
To
see
what
this
updated
file
contains,
SAVE
this
program
if
you
want, erase
memory, and
type
and
RUN:
10
OPEN
"I")
81
,
"ANIMALS/DAT"
20
IF
E0F(1)
=
-1
THEN
B0
30
INPUT
81
,
A$
40
PRINT
A*
50
GOTO
20
G0
CLOSE
«1
Understand? Try
these
exercises:
PROGRAMMING
EXERCISE
#0.1
Write a
program
which
will
allow
you
to
add
animals
to
"ANIMALS/
DAT'
Hint
—
You
must add them
to
the
end
of
the
file.
PROGRAMMING
EXERCISE
#6.2
Write a
program
which
will
allow
you
to
delete
animals from "ANI-
MALS/DATT'
Ready
for
the big
time?
Our
next
exercise
is
a
pro-
gram
many
of
you
will
want
—
a
mailing
list
pro-
gram.
We'll start
you
out with these
lines
which
input the
names,
addresses,
and phone numbers
of
your
club
members:
30
Table of
Contents
Previous
Page
Next
Page
1
...
37
38
39
40
41
42
43
44
Advertisement
Table of Contents
Related Manuals for Tandy TRS-80
Desktop Tandy TRS-80 Model II Technical Reference Manual
(204 pages)
Printer Tandy TRP-100 Operation Manual
(83 pages)
Storage Tandy TRS-80 Service Manual
(60 pages)
Desktop Tandy TRS-80 Service Manual
(36 pages)
Video Game Controller Tandy TRS-80 Owner's Manual
Color computer deluxe joystick (16 pages)
Desktop Tandy TRS-80 Model 16 Service Manual
(92 pages)
Desktop Tandy Radio Shack TRS-80 4 Manual
(72 pages)
Desktop TANDY Color Computer 3 TRS-80 Diagnostic Manual
Based on the motorola 6809 (13 pages)
Desktop Tandy Radio Shack TRS-80 Owner's Manual
(12 pages)
Desktop Tandy Radio Shack TRS-80 Operator's Manual
Expansion interface (14 pages)
Desktop Tandy 1000 TL3 User Manual
(63 pages)
Desktop Tandy 1000 User Manual
(337 pages)
Desktop Tandy 1000 HX Technical Reference Manual
(426 pages)
Desktop Tandy Tandy 600 Owner's Manual
(307 pages)
Desktop Tandy 6000 Manual
(25 pages)
Desktop Tandy 1000 Technical Reference Manual
(497 pages)
Related Products for Tandy TRS-80
Tandy TRS-80 Model 16
Tandy Radio Shack TRS-80 4
Tandy Radio Shack TRS-80 4P
Tandy TRP-100
Tandy TRC-502
Tandy Realistic TRC-88
Tandy Radio Shack Realistic TM-1001
Tandy 1000 HX
Tandy 1000 MS-DOS
Tandy 1000 SL
Tandy 1000 TL3
Tandy 1000SX
Tandy 102
Tandy 1200 HD
Tandy 2000
Tandy 26-1140
Table of Contents
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL