
M-51 for TUC52, Issue 1.0
Page 5
January 21, 1998
File: m51-i1.doc
An example would be:
m51-> f 44 66 8d 3e 2a {rtn}
x0025:
x33DE:
xE09C:
m51->
2.3.6
GO (G)
The GO command may be followed with up to 3 arguments. The form is "g<argo> <arg1> <arg2>" where
all arguments are optional. If "arg0" is included
1
, this will be the address that the monitor will begin the
user program at. If "arg0" is not used, the monitor will begin execution at the address contained in the user's
PC register (shown by the XP command
2
). "arg1" and "arg2" are optional break-points. If included, the
monitor will replace the data at these locations with an LCALL instruction to the monitor break-point
routine and then begin execution of the user's program. When the user's program encounters the LCALL
breakpoint instruction, control will be returned to the monitor and the monitor will return the original user's
data to the breakpoint address.
The GO command restores all user registers before going to the user program and it saves all user registers
following a break-point.
Be sure to review the section near the end of this document titled "Cautions with GO Breakpoints, NEXT
and ZNEXT Commands". This is important information.
2.3.7
HELP (H)
The HELP command will print some notes about the commands to the console. This is handy if you don't
have the manual nearby.
2.4
C
OMMANDS IN
D
ETAIL
This section outlines the commands in more detail.
2.4.1
JAM (J)
The JAM command is used to jam (or fill) an area of XDM with a constant. Usage is "j start end value".
The "value" will be loaded into all memory locations from "start" to "end" inclusive.
An example would be:
m51-> j c000 c01f 41 {rtn}
m51-> dx c000 {rtn}
xC000: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
m51->
1
Note that in the GO command there is no space between the G and the arg0 value.
2
See the Examine command.