OT-ish - converting hex output to binary on a Unix platform

From: Paul R. Santa-Maria <paulrsm_at_buckeye-express.com>
Date: Fri Jul 30 12:05:58 2004

I use MS-DOS, not Unix, and I always
solve the problem of converting a hex
dump to a binary file using two
standard tools: a text editor and an
assembler.

> (files are in the format of 16 pairs
> of uppercase hex digits per line,
> with a trailing space after every
> pair - even the last one on a line)

So a sample line might be

"00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F "

Adjust the following steps for your
assembler. Delete trailing spaces,
convert every space to ",$", and add
" DB $" to the beginning of every line:

" DB $00,$01,$02,$03,$04,$05,$06,$07,$08,$09,$0A,$0B,$0C,$0D,$0E,$0F"

Add any required directives (ORG, END,
etc.) and assemble.

--
Paul
Monroe, Michigan USA
Received on Fri Jul 30 2004 - 12:05:58 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:36:53 BST