
M-51 for TUC52, Issue 1.0
Page 7
January 21, 1998
File: m51-i1.doc
2.4.5
POV (P)
The POV (Power On Vector) command allows the user to tell the monitor that you want it to jump to
location "arg0" a few seconds after power or reset. This command is only useful if the external RAM is
protected from memory loss during power off states (i.e., battery backed up). To issue the command type "P
arg0" from the console. The location for start-up is saved in a reserved location in RAM (it's complement is
also saved in several places as a check). At power-on or reset the monitor looks to the console port for a
few seconds to see if a period {.} or escape character {esc} are entered. If not, program control is passed to
the routine starting at location "arg0". If period {.} or escape character {esc} are entered within a few
seconds of reset then program control is retained by the monitor and the user will see the normal sign-on
message and be able to operate the monitor until the next power-on or reset event. To clear the vector issue
the UPOV command again with "arg0" equal to zero (0). That will clear the vector so that the monitor will
function normally and look only to the console for commands after a reset or power-up. The best way to
ensure that the monitor will see the period or ESC is to type the character repetitively following a reset.
2.4.6
RXINTEL (R)
The RXINTEL command is used to load INTEL HEX code into memory space. The RXINTEL command
may be followed by an optional offset argument. The offset value is added to the address contained in each
record of the HEX code. The result of the addition points to where the data portion of the record will be
stored in XDM. If the offset is omitted, it is assumed to be zero. When a record is correctly received, a dot
(.) will be printed on the console. When the end of file is found the monitor will output a message to
indicate that the down load was successful and the last location where data was stored.
An example of a screen following a download might look like this.
m51->r 8000 {rtn}
.............................................................
.............................................................
.............................................................
...............................................
RX OK, DATA ENDING AT: 9981
m51->
2.4.7
VFINTEL (V)
The VFINTEL command is very much like the RXINTEL command. The only difference is that the
downloaded data is compared to the data in memory (as opposed to overwriting the data in memory like
RXINTEL). If there is a difference between the downloaded record and the data in memory an error
message will be displayed.
2.5
S
UBSTITUTE
(SX, SI, SF)
The SUBSTITUTE command is used to show and modify XDM, IDM or the Special Function Registers.
The SUBSTITUTE command is always followed by an address argument. This argument determines where
the substitution will begin. The address will be displayed followed by the data at that location. To change
the data enter a new value and type space {sp} to continue at the next location. To go to the next address
without changing the data just enter a space {sp} without preceding data. To complete the SUBSTITUTE
process enter a return character [ret] to return to the monitor command mode.
An example would be: