Download Print this page

Radio Shack TRS-80 PC-2 Owner's Manual page 11

Hide thumbs Also See for TRS-80 PC-2:

Advertisement

The general syntax for th is statement is CONSO LE x, y, z.
Both y and z are optional, but if y or z is specified the
preceding parameter must also have been specified.
x is either 0 or 16
~
255, and controls the number of
characters allowed in a single block of data sent from the
RS-232C.
A carriage return and/or line feed sequence is
automatically transmitted each x characters.
If x = 0,
this automatic blocking of records is disabled.
y and z are each either 0 or 1, and each specifies either a
carriage return (0) or line feed
(1)
to be sent at the end
of a data record.
If only y is specified, only one carriage return (y = 0) or
line feed (y = 1) is sent at the end of a record. If y and
z are both specified, then two characters are sent as
defined by y and z, respectively.
If
y=
and
z=
,
Characters Sent
0
0
CR CR
0
1
CR LF
1
0
LF CR
1
1
LF LF
Table 3
For example, to set maximum data line length to 80 bytes
and end-of-line protocol to carriage return only, type:
CONSOLE 80,0 (ENTER)
To set maximum data line length to no limit and end-of-
line protocol to carriage return only, type:
CONSOLE 0,0 (ENTER)
16
CSAVEa
Save Program to RS·232C in ASCII Format
CSAVEa startline, endline
startline is the first line of the program you
want to save.
startline is optional; if
omitted, the first line of the program is
used.
endline is the last line of the program you
want to save. endline is optional; if omit-
ted, the last Iine of the program is used.
CSAVEa saves the current program to the RS-232C in
ASCII format. This means:
Each line must start with a line number.
Each line is ended with a carriage return
(ODH).
Maximum length of line is 160 characters, including
line number and the carriage return.
Leading blanks (after a carriage return and before a line
number) are ignored.
File is ended with a null line (carriage return only).
After compression, a maximum of 80 characters are
allowed.
CSAVEa functions only when cassette output is routed to
the RS-232C.
Its syntax is slightly different from CSAVE's, and is used
in the form CSAVEa x, y where x and yare both
optional and specify the line numbers of the first and last
lines to be saved -
just like the LLiST x, y. This lets
you save a portion of the program if desired.
Note: CSAVEa pauses two seconds between lines.
17

Advertisement

loading