Using Cre; Loading And Operating Cre; File Development And Manipulation; Creating A File - RCA 1800 Operator's Manual

Cosmac development system ii
Hide thumbs Also See for 1800:
Table of Contents

Advertisement

CDS Resident Software Development Aids _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 75
specific command nl$ (combining the two) is legal. It
causes the insertion of a single character whose
ASCII decimal value is n (modulo 128).
For example, 101$ will cause insertion of a LF
character (hex OA).
Using
eRE
.
In this section, information is given on the
d'
e velopment and manipulation of a COSMAC file
through use of the COSMAC Resident Editor (CRE).
In-addition, some useful common sequences are given
to illustrate CRE's data manipulation facilities.
Loading and Operating CRE
The following steps are required to use CRE:
1.
Load the program as follows:
a. For a TI terminal in the LINE mode.
1) Press RESET, then RUN U, then
CR - get a
*.
2) Mount CRE program cassette and
rewind it.
3) Press
LOAD
I
FF
to advance to the
first file.
4) Press CONT 1ST ART to start reading
th
e
file.
b. For a Teletype terminal in the LINE
mode.
l)
Press RESET, then RUN U, then
CR - geta
*.
2) Mount CRE tape in reader.
3) Place the READER Control switch
in the Manual position.
4) Press START on the tape reader.
2. Mount input file (if any) in reader.
3. Mount a blank cassette for the output file. If
paper tape, do not turn punch ON yet.
4. Type $U(CR) to start CRE.
5. CRE begins by typing
"?"
asking user to
identify the type terminal in use. In response, type P
for a Teletype terminal or any other character for a
TI terminal.
6. CRE will then give the
+
prompt indicating
that it is ready to accept commands.
File Development and Manipulation
Creatin~
a
File
A file is created by a repeated sequence of the
following steps:
(1) File buffer from keyboard with sequence of
INSERT's.
(2) WRITE buffer to output file .
A single I command may take as an argument a text
string of abritrary length. Thus, many lines may be
inserted with a single I command. Each line is ter-
minated by pressing the RETURN key. A typical
INSERT will thus appear on the printer as
+
I line 1
line
2
lin
e
n
$$
.. Insert command and 1st line of
.. text.
· .Additionallines
· .Additionallines
· .Additionallines
.. Additionallines
· .Last line of text
· .End of insert; double
..ESCAPE
because each CR is echoed as CR. LF. Such com-
mands may be sequenced until the buffer is nearly
filled. These sequences are then normally followed by
an n W (WRITE) command or BnP. with n
>
the
number of lines in the buffer. By use of the W
command, the buffer is cleared after the WRITE to
the output file and is ready for a new set of IN-
SERT's.
The last line inserted should be followed by the
insertion of a terminating dummy line consisting of
the single character DC3 (CRTL and S), followed by
the usual RETURN to assure proper tape format, as
discussed earlier.
If the output tape is a paper tape, a final N
command will add the trailer of NULL's.
Adding to a File
A section is added to an existing file by first
copying the portion before the insert, and finally
copying the portion after the insert. The first copy
involves one or more APPEND's followed by
WRITE's, up to the APPEND which reads in the
section of the input file which contains the insertion
point. Note that appending to the end of a file may
also be considered as an insertion just before the last
DC3 terminating line.

Advertisement

Table of Contents
loading

Table of Contents