COPY
Learning to use DEBUG requires a good bit of memory work. Unless;
of course, the information in displayed in the DEBUG console window and
copied to the printer. This exercise
talks about saving the contents of the DEBUG display to a text file so
that it may be output to the printer.
Our first exercise was to call DEBUG, list the resident commands with
the ? entry and then QUIT with the Q character.
Lets do it again, but this time we will make a copy of the text in the
Debug display before we quit....
Again, we will call DEBUG from the Windows program.
DEBUG Click
START,
select
RUN
and
type it in and click OK. You will open DEBUG.
Notice that the prompt is the - sign.
?
Type
the
interogative
on
the keyboard and press enter. Then mark and
copy it into the clipboard buffer.
-?
assemble
A
[address]
compare
C
range
address
dump
D
[range]
enter
E
address
[list]
fill
F
range
list
go
G
[=address]
[addresses]
hex
H
value1
value2
input
I
port
load
L
[address]
[drive]
[firstsector]
[number]
move
M
range
address
name
N
[pathname]
[arglist]
output
O
port
byte
proceed
P
[=address]
[number]
quit
Q
register
R
[register]
search
S
range
list
trace
T
[=address]
[value]
unassemble
U
[range]
write
W
[address]
[drive]
[firstsector]
[number]
allocate
expanded memory XA [#pages]
deallocate
expanded
memory
XD
[handle]
map
expanded memory pages XM [Lpage]
[Ppage] [handle]
display
expanded memory status XS
-
The ? function isn't in the list, but
it is the
traditional DOS help command. It can be used for most of the DOS
commands.
Before we exit the Debug program we will want to make a copy of the
display from the Debug display.
Selecting the text from the Debug display in the DOS console display is
a little different than with using the Windows EDIT and SELECT
features; However, it does the same thing. The selected information is
copied into the clipboard buffer for subsequent Pasting into a text
file for printing. Here is how it can be done:
While viewing the text to be copyied in the Debug Console
display, Move the mouse cursor to click on the menu icon of
the Debug Console display. It is the left upermost icon on the Debug
console window. select EDIT from the drop down
menu, Select SELECT ALL for the entire display. Select MARK to
highlight selected text with the mouse cursor. Select COPY to copy into
the clipblard buffer. The text that is selected to be copied will be
highted. Once it is copied into the clip-board buffer, it can easily be
pasted into a text file to be printed out using the paste function in
the text file's edit menu.
Q
Type
Q
and
exit
the DEBUG program. In this example, terminating DEBUG will
transfer program control back to Windows.