3 Quick and dirty program to make intel-hex from a binary.
5 Written by R.E.Wolff@BitWizard.nl
6 This file is in the public domain
10 Mon Jun 16 00:24:15 MET DST 1997
14 Mon Jun 16 00:31:27 MET DST 1997
16 debugging finished (2 bugs found):
17 Mon Jun 16 00:32:52 MET DST 1997
19 ---------------------------------------------------------
21 Doc written in timeout. Everything else in this file was done while
22 the timer was running.
24 I promised "Mark Kopecki" that writing the bin-to-intel-hex
25 converter would cost less than 15 minutes, and that it would be more
26 trouble to find a converter on the net than to write the converter
27 myself. I ended up spending over half an hour searching for
28 spec/converter/docs because of unreachable hosts on the internet. I
29 got a file with docs, after that it was 8 minutes.....
31 ---------------------------------------------------------
41 ll aaaa tt dd....dd cc
51 int main (int argc, char **argv)
53 unsigned char buf[32];
57 while ((n = read (0, buf+4, 16)) > 0) {
68 printf ("%02x", buf[i]);
72 printf (":0000000001ff\n");