home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / sysutl / convrt12.arc / CONVERT.DOC < prev    next >
Text File  |  1989-11-29  |  2KB  |  64 lines

  1.  
  2. CONVERT.COM
  3. Command
  4.  
  5. Michael Mefford
  6. July, 1989 (Utilities)
  7.  
  8.  
  9. Purpose:        Simultaneously displays ASCII codes or whole numbers
  10. between 0 and 4,294,967,295 in their hexadecimal, decimal, octal, and
  11. binary equivalents; especially useful in translating printer, modem, or
  12. EGA monitor Escape sequences and set-up strings from one number base to
  13. another.
  14.  
  15. Format: CONVERT <number>[<base>][-<number>[<base>]] | "<character(s)>"
  16.  
  17. Remarks:        Either a single number or a number-number range may be
  18. input to CONVERT for multiple number base display.  Decimal input is
  19. assumed unless otherwise indicated by adding b (binary), o (octal), or
  20. h (hexadecimal) to the number(s).  An ASCII code to be converted must
  21. be placed within double quotes.  To include double quotes in a string,
  22. type two of them. Control codes (e.g. Ctrl-A) may be entered normally
  23. at the keyboard (within double quotes) with the exception of the Escape
  24. character.  To display the equivalents (including the ASCII left-arrow
  25. graphic) of the Escape character, enter CONVERT 27.
  26.  
  27.         When large numbers are converted, the 4-byte sequence displayed
  28. within quotes in the right-hand column as the ASCII "equivalent" should
  29. not be used in translating set-up strings.  It represents the
  30. individual byte values, not the value of the combination.  Note, too,
  31. that in this display, decimal 0 (null), 32 (space), and 255 (blank) all
  32. appear as blanks.
  33.  
  34.         The output from CONVERT may be redirected to a printer or to
  35. file, so that a multi-line table of values may be created.  When
  36. redirection is used, however, the ASCII equivalent normally shown in
  37. the right-hand column is dropped.
  38.  
  39. To create CONVERT.COM from the CONVERT.ASM source code requires use of a
  40. macro assembler (IBM or Microsoft, Version 2 or later) and the following
  41. commands:
  42.  
  43. MASM CONVERT;
  44. LINK CONVERT;
  45. EXE2BIN CONVERT CONVERT.COM;
  46.  
  47. Alternatively, use Borland's assembler via
  48.  
  49. TASM CONVERT
  50. TLINK /T CONVERT
  51.  
  52.  
  53. (Originally published in PC Magazine vol 8 # 13)
  54.  
  55. Additions and fixes by TapirSoft Gisbert W.Selke:
  56.  
  57. v1.1 (Aug 89) - Fixed a bug that prevented hexadecimal input containing
  58.                 the digit b (It was interpreted as the binary base designator).
  59. v1.2 (Nov 89) - Expanded to handle 4-byte values (original was limited to
  60.                 2 bytes).
  61.               - General tweaks and changes of operating logic.
  62.               - Changed docs as necessary.
  63.  
  64.