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 44
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
A MORE
DIRECT
APPR
O
AC
H
>*
"MARIE
ALEXANDER"
record
1
"
J
.
DOE"
record 2
"MARK
JONES"
record
3
"BILL
SMITH"
record 4
//
With
each
record the
same
length
(the
length
of
a
sector),
the
Computer
can go
directly to
"J.
DOE!'
All
it
has
to
do
is
count
down
to
the second
record.
We
call
this
a
"direct
access"
file.
By
direct access,
we
mean
you
can
directly
access
any
record
you
want
in
the
file.
A
direct
access
file
has one shortcoming.
Each
record
is
the
size
of
a
sector
—
256
bytes.
Since
one
of
these bytes holds
one
character
of data,
each
record
is
large
enough
to
hold
256
characters.
This
means
that
our
drawing
above
is
a
little
mis-
leading.
If
we
illustrated
all
the
empty
space
in
each
record,
they
would
each have
to
be nearly ten
times as
long.
We
simply
don't
have enough
room
on
the page.
If
you're
a
beginner,
all
this
empty
space probably
won't bother you.
An
empty
disk
can
hold
up
to
612
records
—
each 256
bytes
long.
Later
on,
when
you
become more
comfortable with
programming,
you'll
probably
want
to
pack
more
records
into
a
disk
file.
You
can then
progress
to
Chapter
9,
where
we
will
demonstrate
how
to
make
smaller
records.
PUTTING
A RECORD ON
DISK
Enough
theory!
Let's
put one
record
in
a disk
file.
Since
it'll
be a
direct access
file,
we
don't
have
to
start
with
the
first.
We'll start
with
the second.
Erase
memory
and
type:
10
OPEN
"D"
t
til,
"NAMES/DAT"
20
WRITE
*1
t
"J.
DOE"
30 PUT
*1
.
2
40
CLOSE
*1
The program
looks familiar
.
.
.
except
for
the
word
PUT
in line
30
and
the
"D"
in line 10.
More
on
that
later
.
.
Now
let's
add
some
lines so
the
Computer
will
read
this
record
back
into
its
main
memory.
Type:
34
GET
81
t
2
3G
INPUT
#1
,
A*
38
PRINT
A$
Note
that
line
34 uses another
new
word
—
GET
Hmmm
.
.
.
any
ideas?
Let's
look
at
the entire
program:
10
OPEN
"D"i
»1
"NAMES/DAT"
2(3
WRITE
»1
,
"J.
DOE"
30 PUT
*1
.
2
3 a
GET
«1
i
2
36 INPUT
»1
p
A$
38
PRINT
A$
40
CLOSE
*1
RUN
it
.
.
.
You'll
hear
the
now
familiar
sound from
your
disk
drive.
The Computer
is
writing
"J.
DOE"
in
the
disk
file
and
then reading
it
back
into
memory.
Here's
how
.
.
Line 10
OPENs
buffer
#1
which
will
communi-
cate
with a
disk
file
named "NAMES/DAT." As we
said
in
the
last
two
chapters, buffer
#1
is
one
of
the 15
"buffer"
areas
which can communicate
with
your
disk.
Communication
is
being
OPENed
for "D."
"D"
stands
for
direct access.
Unlike
sequential
access,
you
don't
have
to
specify
whether
you're
OPENing
34
Table of
Contents
Previous
Page
Next
Page
1
...
41
42
43
44
45
46
47
48
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 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 1000 Programmer's Reference Manual
(251 pages)
Desktop Tandy 1000 HX Technical Reference Manual
(426 pages)
Desktop Tandy Color Computer 3 User Manual
(49 pages)
Desktop Tandy 1000 Basic Reference Manual
(411 pages)
Desktop Tandy 1200 HD User Manual
(171 pages)
Desktop Tandy 1000 User Manual
(337 pages)
Desktop Tandy 1000 TL3 User Manual
(63 pages)
Desktop Tandy Tandy 600 Owner's Manual
(307 pages)
Related Products for Tandy TRS-80
Tandy TRS-80 Model 16
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-3334
Tandy 600
Tandy 6000 HD
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