home *** CD-ROM | disk | FTP | other *** search
- COMMAND: DEBUG
-
- FUNCTION: Loads, displays and allows changes to machine code files. Controls
- the execution of assembler programs so that they may be debugged
- without reassembling them.
-
- FORMAT: DEBUG [d:][path][filename[.ext]][parm1][parm2]
-
- TYPE: DOS external command
-
- REMARKS: If a filename is specified on the command line, then DEBUG loads
- the specified file into memory and operates on it. If no filename
- is specified, DEBUG operates on the present contents of memory and
- any required files must be loaded using the Name and Load commands.
- The optional command line parameters allow various memory address
- and file specification options to be specified at startup. These
- are described in detail in the DOS Manual.Once DEBUG is started,
- commands can be entered interactively at the hyphen (-) prompt.
- Commands may be in upper or lower case and may be separated from
- parameters by delimiters. Press Ctrl-Break to terminate a command
- and Ctrl-NumLock to suspend the display (press any other character
- to restart the display). The available commands are:
-
- A [address]
-
- Assembles IBM PC Macro Assembler language statements directly into
- memory starting at the specified address. Press Enter to return to
- the DEBUG prompt.
-
- C range address
-
- Compares the contents of two blocks of memory, where the length of
- the comparison is specified by range and the start points are
- specified by range and address.
-
- D [address] or D [range]
-
- Displays the contents of the specified portion of memory in both
- hexadecimal and ASCII formats.
-
- E address [list]
-
- Replaces the contents of one or more bytes, starting at the specified
- address, with the values contained in the list or displays and allows
- modification of bytes in a sequential manner.
-
- F range list
-
- Fills the memory locations specified in the range with the values in
- the list.
-
- G [=address] [address[address...]]
-
- Executes the program currently being debugged with or without
- specified breakpoints.
-
- H value value
-
- Adds the two hexadecimal values, subtracts the second from the
- first, and displays the sum and difference on one line.
-
- I portaddress
-
- Inputs and displays in hexadecimal one byte from the specified port.
-
- L [address[drive sector sector]]
-
- Loads a file or absolute diskette sectors into memory.
-
- M range address
-
- Moves the contents of the memory locations specified by range to the
- locations beginning at address.
-
- N filespec [filespec...]
-
- Formats file control blocks for the first two filespecs for use by
- the Load and Write commands.
-
- O portaddress byte
-
- Sends the byte to the specified output port.
-
- Q
-
- Quits DEBUG and returns to DOS without saving the work file currently
- in memory.
-
- R [registername]
-
- Displays the hexadecimal contents of a single register and allows
- changes to be made to those contents, or displays the hexadecimal
- contents of all the registers, the alphabetic flag settings, and the
- next instruction to be executed, or displays the alphabetic flag
- settings and allows changes to be made to any or all of them.
-
- S range list
-
- Searches the range in memory for the character(s) in list and
- displays the addresses where matches are found.
-
- T [=address][value]
-
- Executes one or more instructions at a time and displays the contents
- of all registers and flags after each instruction executes.
-
- U [address] or U [range]
-
- Unassembles instructions and displays their addresses and hexadecimal
- values along with assembler-like statements in the specified memory
- locations.
-
- W [address[drive sector sector]]
-
- Writes the data being debugged to a diskette file.
-
- Refer to the DOS Manual for details on these commands and for
- more information on the formats of individual parameters.