home *** CD-ROM | disk | FTP | other *** search
-
-
- # # ######
- # # # #
- # # # #
- ####### # #
- # # # #
- # # # #
- # # ######
-
-
-
-
- You can get part of the following documentation by invoking the program with
- the switches -v, -h, or -H . See README.TXT for more information.
-
- ----------------------------------- -v ------------------------------------
- HD v1.0 -- Display hex dumps of binary files
- Copr (c) 1992,1993 Richard Breuer. HD is freeware. No warranties.
-
- This is HD/2 v1.0 - renamed to HD (from RUTILS 4).
-
- Author: Richard Breuer
- Brunssumstrasse 6
- 5100 Aachen
- (after Jul 1, 1993: 52074 Aachen)
- Germany
- Europe
-
- Phone: +49/241/85605
- Fax: +49/241/8021329
-
- Email: ricki@pool.informatik.rwth-aachen.de (Preferred!)
-
- ----------------------------------- -h ------------------------------------
- HD v1.0 -- Display hex dumps of binary files
- Copr (c) 1992,1993 Richard Breuer. HD is freeware. No warranties.
-
- Usage:
- HD [-hHl:o:qtxv*] infile.. [{>|>>} outfile]
-
- Options (+ are default):
- -h Display this help screen
- -H Display another help screen with notes and examples
- -l<n> Display <n> lines with 16 bytes each for every file. If the first
- character of <n> is $, <n> is interpreted as hex, default is decimal.
- If <n> is omitted, n=20 (about one page) is assumed
- + -n Use normal charset (#32..#126, #128..#168)
- -o<n> Start at file offset <n> (As with -l, $ may be used)
- -q Don't display header lines
- -t Use tiny charset (0..9, A..Z, a..z)
- -x Use extended charset (#32..#254)
- -v Display version info
- -* Display internal information (for debugging purposes)
-
- ----------------------------------- -H ------------------------------------
- HD v1.0 -- Display hex dumps of binary files
- Copr (c) 1992,1993 Richard Breuer. HD is freeware. No warranties.
-
- Notes:
- The output is always directed to stdout. The errorlevel is set to 1 if help
- has been displayed. It is set to 255 in case of an error and 0 on normal
- completion. Output resulting from multiple input files is appended to
- stdout. The processing order for wildcards depends on the order of the
- directory entries. Adresses are displayed with 4 digits. If they are longer,
- the 4 LSB's are displayed. Console input is not possible. Piping works.
-
- Example:
- HD *.COM
- Process all *.COM files in the current directory and append the hexdumps
- to stdout. The order is the one DOS's DIR tells you.
- MYPROG | HD -x > MYPROG.HEX
- Creates a hex dump of the stuff MYPROG writes on stdout.
-
- -------------------------------------------------------------------------------
- Additional information:
- HD is similar to the Unix command OD, which has several useful options more
- than HD. Maybe some day I'll re-implement OD, but until now HD serves me
- well.
-
- Example:
- Here's an example. I ran HD with a little program called keyfake by Charles
- Petzold, which I sometimes use:
-
- HD \BIN\KEYFAKE.COM (normal character set)
- File: \bin\KEYFAKE.COM
- Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
- -----------------------------------------------------------------------
- 0000 E9 83 00 4B 45 59 2D 46 41 4B 45 20 28 43 29 20 ...KEY-FAKE (C)
- 0010 43 6F 70 79 72 69 67 68 74 20 43 68 61 72 6C 65 Copyright Charle
- 0020 73 20 50 65 74 7A 6F 6C 64 2C 20 31 39 38 35 00 s Petzold, 1985.
- 0030 00 00 00 86 01 00 FB 2E 80 3E 35 01 00 74 09 0A .........>5..t..
- 0040 E4 74 0A 80 FC 01 74 20 2E FF 2E 2F 01 53 2E 8B .t....t .../.S..
- 0050 1E 33 01 2E 8B 07 43 43 2E 89 1E 33 01 2E FE 0E .3....CC...3....
- 0060 35 01 5B 0B C0 74 CF CF 53 2E 8B 1E 33 01 2E 8B 5.[..t..S...3...
- 0070 07 5B 0B C0 75 0D 2E 83 06 33 01 02 2E FE 0E 35 .[..u....3.....5
- 0080 01 0B C0 CA 02 00 C7 06 00 01 00 00 C6 06 02 01 ................
- 0090 00 FC 8C CA 2B C0 8E C0 BE 00 01 8B FE B9 2F 00 ....+........./.
- 00A0 F3 A6 74 2C 40 8E C0 3B C2 75 ED C6 06 01 00 27 ..t,@..;.u.....'
- 00B0 2B C0 8E D8 A1 58 00 2E A3 2F 01 A1 5A 00 2E A3 +....X.../..Z...
- 00C0 31 01 FA C7 06 58 00 36 01 8C 0E 5A 00 FB 0E 1F 1....X.6...Z....
- 00D0 BE 80 00 BF 86 01 26 89 3E 33 01 26 C6 06 35 01 ......&.>3.&..5.
- 00E0 00 AC 98 8B C8 41 0B C0 75 03 E9 27 01 E9 9B 00 .....A..u..'....
- 00F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
- [...]
- 0200 06 87 02 00 C6 06 88 02 00 C6 06 89 02 00 49 74 ..............It
- 0210 03 E9 77 FF BA 86 02 C3 ..w.....
-
- Total: 34 lines with 536 bytes.
-
- HD \BIN\KEYFAKE.COM -x (extended character set)
- File: \bin\KEYFAKE.COM
- Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
- -----------------------------------------------------------------------
- 0000 E9 83 00 4B 45 59 2D 46 41 4B 45 20 28 43 29 20 Θâ.KEY-FAKE (C)
- 0010 43 6F 70 79 72 69 67 68 74 20 43 68 61 72 6C 65 Copyright Charle
- 0020 73 20 50 65 74 7A 6F 6C 64 2C 20 31 39 38 35 00 s Petzold, 1985.
- 0030 00 00 00 86 01 00 FB 2E 80 3E 35 01 00 74 09 0A ...å..√.Ç>5..t..
- 0040 E4 74 0A 80 FC 01 74 20 2E FF 2E 2F 01 53 2E 8B Σt.Çⁿ.t . ./.S.ï
- 0050 1E 33 01 2E 8B 07 43 43 2E 89 1E 33 01 2E FE 0E .3..ï.CC.ë.3..■.
- 0060 35 01 5B 0B C0 74 CF CF 53 2E 8B 1E 33 01 2E 8B 5.[.└t╧╧S.ï.3..ï
- 0070 07 5B 0B C0 75 0D 2E 83 06 33 01 02 2E FE 0E 35 .[.└u..â.3...■.5
- 0080 01 0B C0 CA 02 00 C7 06 00 01 00 00 C6 06 02 01 ..└╩..╟.....╞...
- 0090 00 FC 8C CA 2B C0 8E C0 BE 00 01 8B FE B9 2F 00 .ⁿî╩+└Ä└╛..ï■╣/.
- 00A0 F3 A6 74 2C 40 8E C0 3B C2 75 ED C6 06 01 00 27 ≤ªt,@Ä└;┬uφ╞...'
- 00B0 2B C0 8E D8 A1 58 00 2E A3 2F 01 A1 5A 00 2E A3 +└Ä╪íX..ú/.íZ..ú
- 00C0 31 01 FA C7 06 58 00 36 01 8C 0E 5A 00 FB 0E 1F 1.·╟.X.6.î.Z.√..
- 00D0 BE 80 00 BF 86 01 26 89 3E 33 01 26 C6 06 35 01 ╛Ç.┐å.&ë>3.&╞.5.
- 00E0 00 AC 98 8B C8 41 0B C0 75 03 E9 27 01 E9 9B 00 .¼ÿï╚A.└u.Θ'.Θ¢.
- 00F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
- [...]
- 0200 06 87 02 00 C6 06 88 02 00 C6 06 89 02 00 49 74 .ç..╞.ê..╞.ë..It
- 0210 03 E9 77 FF BA 86 02 C3 .Θw ║å.├
-
- Total: 34 lines with 536 bytes.
-
- HD \BIN\KEYFAKE.COM -t (tiny character set)
- File: \bin\KEYFAKE.COM
- Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
- -----------------------------------------------------------------------
- 0000 E9 83 00 4B 45 59 2D 46 41 4B 45 20 28 43 29 20 ...KEY.FAKE..C..
- 0010 43 6F 70 79 72 69 67 68 74 20 43 68 61 72 6C 65 Copyright.Charle
- 0020 73 20 50 65 74 7A 6F 6C 64 2C 20 31 39 38 35 00 s.Petzold..1985.
- 0030 00 00 00 86 01 00 FB 2E 80 3E 35 01 00 74 09 0A ..........5..t..
- 0040 E4 74 0A 80 FC 01 74 20 2E FF 2E 2F 01 53 2E 8B .t....t......S..
- 0050 1E 33 01 2E 8B 07 43 43 2E 89 1E 33 01 2E FE 0E .3....CC...3....
- 0060 35 01 5B 0B C0 74 CF CF 53 2E 8B 1E 33 01 2E 8B 5....t..S...3...
- 0070 07 5B 0B C0 75 0D 2E 83 06 33 01 02 2E FE 0E 35 ....u....3.....5
- 0080 01 0B C0 CA 02 00 C7 06 00 01 00 00 C6 06 02 01 ................
- 0090 00 FC 8C CA 2B C0 8E C0 BE 00 01 8B FE B9 2F 00 ................
- 00A0 F3 A6 74 2C 40 8E C0 3B C2 75 ED C6 06 01 00 27 ..t......u......
- 00B0 2B C0 8E D8 A1 58 00 2E A3 2F 01 A1 5A 00 2E A3 .....X......Z...
- 00C0 31 01 FA C7 06 58 00 36 01 8C 0E 5A 00 FB 0E 1F 1....X.6...Z....
- 00D0 BE 80 00 BF 86 01 26 89 3E 33 01 26 C6 06 35 01 .........3....5.
- 00E0 00 AC 98 8B C8 41 0B C0 75 03 E9 27 01 E9 9B 00 .....A..u.......
- 00F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
- [...]
- 0200 06 87 02 00 C6 06 88 02 00 C6 06 89 02 00 49 74 ..............It
- 0210 03 E9 77 FF BA 86 02 C3 ..w.....
-
- Total: 34 lines with 536 bytes.
-