RCA COSMAC Operator's Manual page 26

Microkit
Hide thumbs Also See for COSMAC:
Table of Contents

Advertisement

PROGRA~WING
INTERFACE TO CSDP (cont'd)
CSDP LOAD ON (Teletype) and the command is completed --
wlth all subsequent characters ignored by UT2 until it
receives the
leading' !M', indicating the beginning of
object file transmission.
CSDP indicates that it is ready for a user command when
it outputs to the terminal the prompt characters "DBG".
Assuming that the assembled file is ready for transmission,
the following two alternative CSDP commands will affect
the transmission:
(1)
$X~<File Name>~[<Start
RAM
Location>]~[<End
RAM Location>]
where <File Name> is the name of the file where CSDP
has saved the object code or, if the object code
resides in CSDP's simulator-memory, as the result
of a just-completed assembly, <File Name> should be
specified as TTY.
For example,
$X TTY #0 #lFF CR
will result in the transmission of the comma-continuation
form of the !M object file, loading the lowest part
(200
16
bytes) of the Microkit RAM.
(Recall that UT2
must "be properly initialized just prior to the final CR.)
This !M form is more compact and "relocatable".
(2)
$Y~<File Name>~[<Start
RAM
Loc>]~[<End
RAM Loc>]
where the same comments above apply to <File Name>.
For example;
$Y TTY #20 #lSO
~
will result in the transmission of the semicolon-con-
tinuation form of the !M file (more readable, since
each line begins with an address value).
If the Microkit has been initialized Froperly, just
b~re
the transmission begins, the object file will be loade
into
RAM automatically.
The user can then proceed to run th
program, with the I/O typewriter back in LOCAL (Execuport)
or TTY-KIT (Teletype) mode, using standard Microkit
facilities (i.e., '$P' via UT2 or via the RUN PROGRAM con-
sole button).
We present below an example of a CSDP-Microkit session, using
a level-l assembly language version of the sample program
discussed earlier (in Figure 2, p.1S).
The source program
is listed below in Figure
3.
(The comments in the listing
should be sufficient to permit the reader to establish
correspondence with the detailed hex code in Figure 2.)
Assume that this source program is entered from the keyboard,
- 20 -

Advertisement

Table of Contents
loading

Table of Contents