Hexed is a command line Hexadecimal File Editor.

The source code is written to use an ANSI C99 compatible compiler for portability between Operating Systems.

Hexed is released under the BSD license

Latest Updates
May 6, 2014
hexed help screen now shows the version number.

May 6, 2014
Bugfix: #1 - Added bfcntl to set _fmode to _O_BINARY in MinGW as 'r+b' in fopen was

January 23, 2014
Modified the Makefile. It now has fewer options and should be a cleaner build process.

March 14, 2011

hexed – commands move & word

The last few commands have been added to hexed today, these are move, move overwrite and word size. Move is similar to the copy command with 2 modes of operation, while the word command sets the word size between 8 bit, 16 bit, 32 bit and 64 bit word sizes.

The Command List

Move: -m

Moves data from the source to the destination

-m 100 200 20

Will move 32 bytes from 0x100 to 0x200 and move everything from 0x120 to 0x220 down by 32 bytes.

Move Overwrite: -mo

Moves the data from the source to the destination over writing the original data at destination

-mo 100 200 20

This will move 32 bytes from 0x100 to 0x200 but will insert zeroes into the file below the destination. This way the data will appear where you expect it to be after the move.

Word size: -w

Sets the data word size for most commands like dump, enter, insert etc.

-w 2

This will set the word size to 16 bit so when used with a command like dump will display the data as 2 bytes long as in this example:

hexed -w 2 -e 18 ffff abcd 1234 dead -d
00000000  0000 0000 0000 0000  0000 0000 0000 0000  ................
00000010  0000 0000 0000 0000  ffff abcd 1234 dead  ............4...

The next step is to implement a simple console editor.