home *** CD-ROM | disk | FTP | other *** search
-
- CONVERT.COM
- Command
-
- Michael Mefford
- July, 1989 (Utilities)
-
-
- Purpose: Simultaneously displays ASCII codes or whole numbers
- between 0 and 4,294,967,295 in their hexadecimal, decimal, octal, and
- binary equivalents; especially useful in translating printer, modem, or
- EGA monitor Escape sequences and set-up strings from one number base to
- another.
-
- Format: CONVERT <number>[<base>][-<number>[<base>]] | "<character(s)>"
-
- Remarks: Either a single number or a number-number range may be
- input to CONVERT for multiple number base display. Decimal input is
- assumed unless otherwise indicated by adding b (binary), o (octal), or
- h (hexadecimal) to the number(s). An ASCII code to be converted must
- be placed within double quotes. To include double quotes in a string,
- type two of them. Control codes (e.g. Ctrl-A) may be entered normally
- at the keyboard (within double quotes) with the exception of the Escape
- character. To display the equivalents (including the ASCII left-arrow
- graphic) of the Escape character, enter CONVERT 27.
-
- When large numbers are converted, the 4-byte sequence displayed
- within quotes in the right-hand column as the ASCII "equivalent" should
- not be used in translating set-up strings. It represents the
- individual byte values, not the value of the combination. Note, too,
- that in this display, decimal 0 (null), 32 (space), and 255 (blank) all
- appear as blanks.
-
- The output from CONVERT may be redirected to a printer or to
- file, so that a multi-line table of values may be created. When
- redirection is used, however, the ASCII equivalent normally shown in
- the right-hand column is dropped.
-
- To create CONVERT.COM from the CONVERT.ASM source code requires use of a
- macro assembler (IBM or Microsoft, Version 2 or later) and the following
- commands:
-
- MASM CONVERT;
- LINK CONVERT;
- EXE2BIN CONVERT CONVERT.COM;
-
- Alternatively, use Borland's assembler via
-
- TASM CONVERT
- TLINK /T CONVERT
-
-
- (Originally published in PC Magazine vol 8 # 13)
-
- Additions and fixes by TapirSoft Gisbert W.Selke:
-
- v1.1 (Aug 89) - Fixed a bug that prevented hexadecimal input containing
- the digit b (It was interpreted as the binary base designator).
- v1.2 (Nov 89) - Expanded to handle 4-byte values (original was limited to
- 2 bytes).
- - General tweaks and changes of operating logic.
- - Changed docs as necessary.
-
-