home *** CD-ROM | disk | FTP | other *** search
- The Return, Enter, or <──┘ must be pressed after each command. In the
- following, [] indicates optional. The format of a <list> in DEBUG commands is:
- one or more two-digit hexadecimal numbers (for example, 73 65 78), or
- a character string in quotes (for example, "like this"), or
- any combination of several of the above.
- Commands may be entered in either case (that is, C is the same as c).
- Strings are case sensitive (that is, oldSTRING will not match OLDstring).
-
- DEBUG command: What it does:
-
- C start1,end1 start2 C(ompare) the contents of two blocks in the file
- C start1 end1 start2 <start1> and <start2> are the addresses where the
- C start1 L length start2 comparison begins. The address <end1> (or the
- <length>) is used to determine how many characters
- should be compared. If the two blocks don't compare,
- the first mismatch will be displayed.
-
- D D(ump) the contents of a block of the file, 16
- D start[,end] characters on a line, in both hexadecimal and ASCII.
- D start [end] If <start> is not specified, the last <end> plus 1 is
- D start L length used. If <end> is not specified, 80 (decimal 128) is
- used. <end> is set to 100 when DEBUG begins execution.
-
- E start [list] E(nter) or replace the contents of a block of the file
- starting at address <start>. The length of <list>
- determines the number of characters entered. If <list>
- is omitted, DEBUG will display each character and
- solicit a hexadecimal replacement value. Enter the
- value and press the space bar to continue, or press
- the Enter, Return, or <──┘ key to quit entering values.
-
- F start,end list F(ill) or replace the contents of a block of the file
- F start end list starting at <start> with <list>. If the <list> is
- F start L length list shorter than the block defined by <end> or <length>,
- repeatedly use the <list> until the block is filled.
-
- L L(oad) the file being DEBUGed. DEBUG does this initially
- if a filename[.ext] is specified. If none is specified, a
- N(ame) command can be used followed by a L(oad).
-
- M start1,end1 start2 M(ove) the contents of one block to another in the
- M start1 end1 start2 file. If blocks overlap, no data will be lost.
- M start1 L length start2 <start1> and <start2> are the addresses where the
- move begins. The address <end1> (or the <length>) is
- used to determine how many characters should be moved.
-
- N filename[.ext] N(ame) is used to specify the filename (and extension)
- to be used by the next L(oad) or W(rite) command. Wildcards
- can not be used.
-
- Q Q(uit) ends the DEBUG program execution. Nothing will
- be written to disk. If you want to save any changes
- made, use the W(rite) command before Q(uitting).
-
- R Display the contents of the R(egisters). If <CX> is omitted,
- R CX all the registers will be displayed. If <CX> is present,
- DEBUG will display its value and solicit a new (hexadecimal)
- value. Press the Enter, Return, or <──┘ key to leave it
- unchanged. Enter a new value and then press the Enter, Return,
- or <──┘ key to change the length of the file before W(riting)
- it back to disk. Since DEBUG starts the file at 100, rather
- than 0, the file will be 100 characters shorter than the
- address of the last character D(umped) by DEBUG.
-
- S start,end list S(earch) the block of characters starting at <start>
- S start end list for the value in <list>. Display all the addresses
- S start L length list (if any) where a match is found. If <list> is longer
- than the block to be searched, it will not match.
-
- W W(rite) the file initially read in, or last specified by a
- N(ame) command, back to the disk. The entire file read in
- will be written back, unless the R CX command has been used
- to increase or decrease the length of the file. Do NOT try
- to W(rite) a file with the .EXE extension.