home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / debug / examples.hlp < prev    next >
Encoding:
Text File  |  1989-01-01  |  1.0 KB  |  25 lines

  1.   Example input:        What it means (the Return, Enter or <──┘ key 
  2.                 must be pressed after each command line).
  3.  
  4.   C>DEBUG
  5.   E100 "This is a test, only one test!" 0d 0a<──┘
  6.                 E(nter) some characters for later use.
  7.                 Every line of a text file ends with 0D 0A.
  8.   Ntest.txt<──┘            Since no name was given on the command line,
  9.                 the N(ame) command specifies one.
  10.   RCX<──┘            Set the length of the file with the R(egister)
  11.   CX 0000            command. DEBUG prints the previous contents as
  12.   :20<──┘            "CX 0000". 
  13.   W<──┘                Now, W(rite) the file out.
  14.   F100 1000 20<──┘        F(ill) the area used by DEBUG to load the file
  15.                 with spaces.
  16.   L<──┘                L(oad) the file in from the disk.
  17.   D110L10<──┘            D(ump) the second half of the test file (ten
  18.                 -- thats decimal 16) characters.
  19.  
  20. 249B:0110  6F 6E 6C 79 20 6F 6E 65-20 74 65 73 74 21 0D 0A   only one test!..
  21.  
  22.                 Notice how the 0D 0A got printed as ".." That
  23.                 happens with all non-printing characters.
  24.   Q<──┘                Now, Q(uit) the DEBUG execution.
  25.