EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #283 background imageLoading...
Page #283 background image
Chapter
10
I
BASIC Keywords
PUT/Communications Statement
PUT
[
#
1
buffr
,
num
ber
Transfers data from the communications buffer to the communi-
cations line.
Buffer
is the number assigned
to
the file when you opened it.
The number sign
(#)
is optional. It is provided for compatibility
with other BASICs.
Number
is the number
of
bytes to transfer. It cannot exceed the
value you used in the LEN option in the OPEN COM statement.
Note:
Because
of
the low performance associated with
telephone line communications, we recommend that
you
not
use GET and PUT statements in such
applications.
Example
PUT
2,80
transfers 80 bytes from communications buffer (Buffer
2)
to the
communications line.
Sample
Program
10 OPEN "COM1
:I'
AS
1
20 FIELD 1,
8
AS
A$
30
OPEN
"R"
,3,
"da
t
a
.
f
i
1
"
,8
40 FIELD
3,
8
AS
NS
50 FOR
I
=
1
TO
7
60 GET 3,
I
70 LSET A$=N$
80
PUT
1
,8
90 NEXT
I
100
CLOSE
This program moves the data from the
data.fiZ
file buffer
to
the
communications buffer. Line 80 sends the data in the communi-
cations buffer to the communications line.
281

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals