Start Debug, a program that can be used to test and Debug MS-DOS executable files.
Debug [[drive:] [path] filename [parameters]
Parameters
[Drive:] [path] filename
Specifies the location and name of the executable file to be tested.
Parameters
Specifies any command line information required for the executable file to be tested.
++
Description
Use the Debug command but do not specify the file to be tested
If you use a Debug command with no location or file name, type all the Debug commands in response to the Debug prompt, with a hyphen (-).
Debug Command
The following is a list of Debug commands:
? Display the Debug command list.
A compilation of 8086/8087/8088 Memory codes.
C compares two parts of the memory.
D. display part of the memory.
E. input data to the memory from the specified address.
F. Fill in a memory segment with the specified value.
G is the executable file running in the memory.
H.
I displays the 1-byte value from a specific port.
L load file or disk sector content to the memory.
M copies the content in the memory block.
/N specifies the file for the l or w command, or the parameter for the file being tested.
O sends a value of 1 byte to the output port.
P executes loops, repeated string commands, software interruptions, or subroutines.
Q: Stop the debug session.
R shows or changes one or more registers.
S searches for one or more byte values in some memory.
T executes an instruction, and then displays the content of all registers, the status of all signs, and the decoding form of the command to be executed in debug.
U disassemble the byte and display the corresponding original statement.
W writes the file to the disk.
XA allocates extended memory.
XD releases extended memory.
XM ing extended Memory Page.
Xs displays the extended memory status.
Separate Command Parameters
All debug commands accept parameters except the Q command. Parameters can be separated by commas or spaces, but these delimiters are only required between two hexadecimal values. Therefore, the following command is equivalent:
DCs: 100 110
D Cs: 100 110
D, CS: 100,110
Specify a valid address
The address parameter in the DEBUG command specifies the memory location. Address is a two-digit name that contains a letter segment record or a four-digit field address plus an offset. Segment registers or segment addresses can be ignored. The default segments of commands A, G, L, T, U, and W are CS. The default segment of all other commands is DS. All values are in hexadecimal format.
The valid address is as follows:
CS: 0100
04ba: 0100
There must be a colon between the segment name and offset.
Specify valid range items
The range parameter in the DEBUG command specifies the memory range. You can select two formats for range: Start address and end address, or start address and length range (represented by L ).
For example, the following two syntaxes can specify the 16-byte range starting from CS: 100:
Cs: 100 10f
Cs: 100 l 10
++
Debug sub-commands
Select the Debug command to obtain detailed information.
Debug: A (assembly)
Debug: C (comparison)
Debug (dump)
Debug: E (type)
Debug: F (fill)
Debug: G (redirection)
Debug: H (hexadecimal)
Debug: I (input)
Debug: L (load)
Debug: M (mobile)
Debug: N (name)
Debug: O (output)
Debug: P (execution)
Debug: Q (Exit)
Debug: r (Register)
Debug: s (Search)
Debug: T (Tracking)
Debug: U (disassembly)
Debug: W (write)
Debug: XA (allocating extended memory)
Debug: XD (unallocate extended memory)
Debug: XM (ing extended Memory Page)
Debug: XS (display extended memory status)