home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource3 / 121_01 / xd.doc < prev    next >
Encoding:
Text File  |  1985-08-21  |  1.9 KB  |  68 lines

  1.  
  2.  
  3.      XD (1)                    BDS C Users' Group                    XD (1)
  4.  
  5.  
  6.  
  7.  
  8.      NAME   
  9.      NAME 
  10.           xd - dump file in ascii, hex byte or hex word format 
  11.  
  12.  
  13.      SYNOPSIS   
  14.      SYNOPSIS 
  15.           xd                   
  16.           xd [-wba] filename 
  17.  
  18.  
  19.      DESCRIPTION   
  20.      DESCRIPTION 
  21.           __                                                             
  22.           Xd is a program to dump a file to the console in one or more 
  23.           of three formats: ascii data, hex (2 digits/byte) or word 
  24.           (standard 8080 format, assuming low byte first).  
  25.  
  26.  
  27.           The following options are available:
  28.                w - dump in word format (hex)
  29.                b - dump in byte format (hex)
  30.                a - dump as ascii
  31.           The default option is -ba.
  32.  
  33.  
  34.           In ascii, the following conventions are used to print special
  35.           characters:
  36.                control chars -         ^ followed by uppercase char
  37.                high bit (0x80) on -    | followed by the character in the
  38.                                        low 7 bits
  39.                ctl char & 0x80 on -    $ followed by uppercase character
  40.                del (0x7f) -            ^ followed by space
  41.                0xff -                  $ followed by space
  42.  
  43.  
  44.      CAVEATS   
  45.      CAVEATS 
  46.           This program was tested with v1.50 of the BDS C compiler 
  47.           under CP/M 2.2.  It should work with other versions of BDS C 
  48.           and CP/M, but has not been tested.  
  49.  
  50.  
  51.      EXAMPLES   
  52.      EXAMPLES 
  53.           xd sample.c       dumps file "sample.c" to the console, in both
  54.                             ascii & hex format
  55.           xd -w test.dat    dumps file "test.dat" to the console in hex
  56.                             word format only
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.                                       -1-
  82.  
  83.  
  84. g conventions are used to print special
  85.           chara