Single Commands; Pointer Control Commands; Reading The Input Tape; Deletion Commands - RCA 1800 Operator's Manual

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

Advertisement

CDS Resident Software Development Aids _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 71
Single Commands
Pointer Control Commands
BEGINNING
Execution: Pointer repositioned to the beginning of
the buffer.
END OF BUFFER
Format: Z
Eiecution: Pointer repositioned to the end of the
·,buffer.
CIIARACTERSTEP
Format: nC
Execution: Step pointer right (or left)-
by n
characters.
LINE STEP
Format: nL
Execution: Step pointer down (or up) by n lines
Reading the Input Tape
APPEND
Format: A
Execution: Lines are read from the input file (con-
tinuing from the last line) and appended to the end of
the buffer. The operation continues until one of the
following occurs:
(1)
End of file character detected (i.e., last line has
been read).
(2) 3/4 of the remaining available space has been
filled.
(3) 50 lines have been transferred.
The pointer is repositioned to the beginning of the
first appended line. In large memory systems,
multiple appends may be used to bring additional
lines into the buffer.
Note: The keyboard BREAK key is ignored during
execution of this command only.
Deletion Commands
DELETE
I I ,
,)
Format: nD
• A positive (unsigned) n indicates the direction of right or down;
a negative n indicates left or up for all commands,
Execution: n characters right tor left) adjacent to the
printer are deleted.
KILL
Format: nK
Execution: n lines right (or left) adjacent to the
pointer are deleted.
Text Insertion and Data Manipulation
INSERT
Format: Itext$
Execution: Typed text is inserted to left of present
pointer position. The text may contain multiple lines.
SAVE
Format: nX
Execution: Copy n lines adjacent to the pointer into a
special SAVE area external to the buffer. The
pointer position is not changed. Previous contents of
the SAVE area are overwritten. CRE types CAN'T
SAVE if there is insufficient room in the SA VE area
and it does not save any lines. CRE clears the SAVE
area if n=O (zero).
GET
Format: G
Execution: Equivalent to an INSERT, but using the
present contents of the SA VE area as an implicit text
argument. Note: SAVE and GET are especially
useful in sequence as a copying mechanism - to
MOVE text.
CRE dynamically allocates the available RAM
work space to its SA VE area, stack area, and the
buffer or editing area. Once lines have been SAVE'd,
they remain in the SA VE area indefinitely until the
next SAVE command overwrites them. If many
characters have been SAVE' d, the area available for
the buffer will be proportionally reduced. The SA VE
area is not automatically cleared by a GET com-
mand. Several GET commands may be issued against
the same SAVE area. It is good practice, therefore, to
clear the SAVE area when it is no longer needed in
order to make that area available to the buffer. This
step is accomplished by typing OX (zero-X).
If an attempt is made to save more lines than
there is room for, CRE will type
CAN'T SAVE
and will not transfer any lines to the SA VE area.

Advertisement

Table of Contents
loading

Table of Contents