1
0
mirror of https://github.com/digarok/hihex.git synced 2026-04-21 00:16:54 +00:00

change default start to -bash and clean readme

This commit is contained in:
Dagen Brock
2017-06-19 20:42:46 -05:00
parent 6083a85920
commit 0d655e011c
2 changed files with 14 additions and 10 deletions
+13 -9
View File
@@ -1,25 +1,29 @@
# hihex
The hihex utility works like the 'hexdump' command with a special addition. It allows you to view the character output of ASCII values that have the high bit set.
The `hihex` utility works like the `hexdump` command with a special addition. It allows you to view the character output of ASCII values that have the high bit set.
This is particularly useful for examining binary files from older computers, such as the Apple II, where they would commonly use the high bit versions of characters to display text in other modes such as inverse.
Also great for diffs!
#Still don't get it
# Still don't get it?
Here's a quick example. Look at this file with hexdump...
```
$ hexdump -C binfile
00000000 48 45 4c 4c 4f 20 57 4f 52 4c 44 21 21 21 21 21 |HELLO WORLD!!!!!|
00000010 d3 c5 c3 d2 c5 d4 a0 cd c5 d3 d3 c1 c7 c5 ba a9 |................|
00000020
00000000 48 45 4C 4C 4F 20 57 4F 52 4C 44 21 21 21 21 21 |HELLO WORLD!!!!!|
00000010 D3 C5 C3 D2 C5 D4 A0 CD C5 D3 D3 C1 C7 C5 BA A9 |................|
```
See how the second line is filled with periods? LAME!!!
See how the second line is filled with periods? LAME!!! It could be ASCII with the high bit set, as was common on the Apple II.
Now you can see the whole picture with hihex...
$ hihex ~/binfile
002000 48 45 4C 4C 4F 20 57 4F 52 4C 44 21 21 21 21 21 HELLO WORLD!!!!!
002010 D3 C5 C3 D2 C5 D4 A0 CD C5 D3 D3 C1 C7 C5 BA A9 SECRET MESSAGE:)
```
$ hihex binfile
000000 48 45 4C 4C 4F 20 57 4F 52 4C 44 21 21 21 21 21 HELLO WORLD!!!!!
000010 D3 C5 C3 D2 C5 D4 A0 CD C5 D3 D3 C1 C7 C5 BA A9 SECRET MESSAGE:)
```
+1 -1
View File
@@ -48,7 +48,7 @@ DESCRIPTION
}
func main() {
var offset = flag.Int("offset", 0x002000, "24-bit hex address ofset to start at (eg 0x002000)")
var offset = flag.Int("offset", 0x000000, "24-bit hex address ofset to start at (eg 0x002000)")
var chunksize = flag.Int("chunksize", 16, "number of hex bytes to display per line")
var verbose = flag.Bool("verbose", false, "use -verbose to turn on informational messages")
var lowercase = flag.Bool("lowercase", false, "use -lowercase to print out lower case hex alpha chars")