A tool to assemble binary files from text.
- C89 Compiler
$ cc hex.c -o hex
# cp hex /usr/local/bin
hex input output
$ cat input
b8 03 00
cd 10
$ hex input output
$ hd output
00000000 b8 03 00 cd 10 |.....|
00000005
-
b8 03 00 ; ax = 0x3 cd 10 ; int 0x10 -
0x1fe ; boot 55 aa -
$ cat input "Hello, World!" $ hex input output $ hd output 00000000 48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 21 |Hello, World!| 0000000d
Licensed under 0BSD.