Hardware Reference
In-Depth Information
The command
g
can be used to go to a certain line in the source file. There are
three versions of this command. If it is preceded by a line number, then the tracer
executes until that line is encountered. With a label
/T
, with or without
+#
, the line
number at which to stop is computed from the instruction label
T
. The
g
com-
mand, without any indication preceding it, causes the tracer to execute commands
until the current line number is again encountered.
Address
Command Example
Description
Execute one instruction
#
,!,X
24
Execute # instructions
/T+#
g,!,
/start+5g Run until line # after label T
/T+#
b
/start+5b Put breakpoint on line # after label T
/T+#
c
/start+5c Remove breakpoint on line # after label T
#
g
108g
Execute program until line #
g
g
Execute program until current line again
b
b
Put breakpoint on current line
c
c
Remove breakpoint on current line
n
n
Execute program until next line
r
r
Execute until breakpoint or end
\&=
\&=
Run program until same subroutine level
-
-
Run until subroutine level minus 1
+
+
Run until subroutine level plus 1
/D+#
/buf+6
Display data segment on label+#
/D+#
d , !
/buf+6d
Display data segment on label+#
R , CTRL L R
Refresh windows
q
q
Stop tracing, back to command shell
Figure C-11.
The tracer commands. Each command must be followed by a car-
riage return (the Enter key). An empty box indicates that just a carriage return is
needed.
Commands with no
Address
field listed above have no address.
The #
symbol represents an integer offset.
The command
/label
is different for an instruction label and a data label. For a
data label, a line in the bottom window is filled or replaced with a set of data start-
ing with that label. For an instruction label, it is equivalent to the
g
command. The
label may be followed by a plus sign and a number (indicated by # in Fig. C-11), to
obtain an offset from the label.
It is possible to set a
breakpoint
at an instruction. This is done with the com-
mand
b
, which can be optionally preceded by an instruction label, possibly with an
offset. If a line with a breakpoint is encountered during execution, the tracer stops.
To start again from a breakpoint, a return or run command is required. If the label
and the number are omitted, then the breakpoint is set at the current line.
The