home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / debug / commands.hlp next >
Encoding:
Text File  |  1989-01-01  |  3.9 KB  |  75 lines

  1. The Return, Enter, or <──┘ must be pressed after each command. In the 
  2. following, [] indicates optional. The format of a <list> in DEBUG commands is:
  3.        one or more two-digit hexadecimal numbers (for example, 73 65 78), or
  4.        a character string in quotes (for example, "like this"), or 
  5.        any combination of several of the above.
  6. Commands may be entered in either case (that is, C is the same as c).
  7. Strings are case sensitive (that is, oldSTRING will not match OLDstring).
  8.  
  9. DEBUG command:        What it does:
  10.  
  11. C start1,end1 start2     C(ompare) the contents of two blocks in the file
  12. C start1 end1 start2     <start1> and <start2> are the addresses where the
  13. C start1 L length start2 comparison begins. The address <end1> (or the 
  14.              <length>) is used to determine how many characters 
  15.              should be compared. If the two blocks don't compare, 
  16.              the first mismatch will be displayed.
  17.  
  18. D         D(ump) the contents of a block of the file, 16 
  19. D start[,end]     characters on a line, in both hexadecimal and ASCII. 
  20. D start [end]     If <start> is not specified, the last <end> plus 1 is
  21. D start L length used. If <end> is not specified, 80 (decimal 128) is
  22.          used. <end> is set to 100 when DEBUG begins execution.
  23.  
  24. E start [list]    E(nter) or replace the contents of a block of the file
  25.         starting at address <start>. The length of <list>
  26.         determines the number of characters entered. If <list>
  27.         is omitted, DEBUG will display each character and
  28.         solicit a hexadecimal replacement value. Enter the
  29.         value and press the space bar to continue, or press
  30.         the Enter, Return, or <──┘ key to quit entering values.
  31.  
  32. F start,end list     F(ill) or replace the contents of a block of the file 
  33. F start end list     starting at <start> with <list>. If the <list> is
  34. F start L length list    shorter than the block defined by <end> or <length>,
  35.             repeatedly use the <list> until the block is filled.
  36.  
  37. L        L(oad) the file being DEBUGed. DEBUG does this initially
  38.         if a filename[.ext] is specified. If none is specified, a
  39.         N(ame) command can be used followed by a L(oad).
  40.  
  41. M start1,end1 start2     M(ove) the contents of one block to another in the
  42. M start1 end1 start2      file. If blocks overlap, no data will be lost.
  43. M start1 L length start2 <start1> and <start2> are the addresses where the
  44.              move begins. The address <end1> (or the <length>) is 
  45.              used to determine how many characters should be moved.
  46.  
  47. N filename[.ext] N(ame) is used to specify the filename (and extension)
  48.          to be used by the next L(oad) or W(rite) command. Wildcards
  49.          can not be used.
  50.  
  51. Q        Q(uit) ends the DEBUG program execution. Nothing will
  52.         be written to disk. If you want to save any changes
  53.         made, use the W(rite) command before Q(uitting).
  54.  
  55. R            Display the contents of the R(egisters). If <CX> is omitted,
  56. R CX        all the registers will be displayed. If <CX> is present,
  57.         DEBUG will display its value and solicit a new (hexadecimal)
  58.         value. Press the Enter, Return, or <──┘ key to leave it 
  59.         unchanged. Enter a new value and then press the Enter, Return, 
  60.         or <──┘ key to change the length of the file before W(riting) 
  61.         it back to disk. Since DEBUG starts the file at 100, rather 
  62.         than 0, the file will be 100 characters shorter than the
  63.         address of the last character D(umped) by DEBUG.
  64.  
  65. S start,end list    S(earch) the block of characters starting at <start>
  66. S start end list    for the value in <list>. Display all the addresses
  67. S start L length list    (if any) where a match is found. If <list> is longer 
  68.             than the block to be searched, it will not match.
  69.  
  70. W        W(rite) the file initially read in, or last specified by a
  71.         N(ame) command, back to the disk. The entire file read in
  72.         will be written back, unless the R CX command has been used
  73.         to increase or decrease the length of the file. Do NOT try 
  74.         to W(rite) a file with the .EXE extension.
  75.