Are you after a tool with which to conver the S-records to binary or are you
after a characterization of the S-record format? Most of the published (back
in the '70's and '80's) monitors that MOT released contained code to
convert
incoming S-records to binary and the reverse.
Has anybody looked at those? I'd suggest one look at Lilbug.ASM, which is
published and available even today. The Buffalo monitor for the 'HC11, also
widely published, has that feature in it also, I believe.
I've never seen it done in 'C' but there's really no reason why it
shouldn't
be.
Dick
----- Original Message -----
From: "Frank McConnell" <fmc(a)reanimators.org>
To: <cctalk(a)classiccmp.org>
Sent: Tuesday, June 04, 2002 6:19 PM
Subject: Re: Motorola S-record converter source for new project
ard(a)p850ug1.demon.co.uk (Tony Duell) wrote:
Earlier this evening I was thinking about a
project that will involve (in
part) translating binary to/from IntelHex (or Motorola S-record would do,
actually). Can you give me a URL for that source code you mentioned (or
any other source code for a simular program).
http://www.canb.auug.org.au/~millerp/srecord/srecord.html
My recollection is that when I first tried to install SRecord version
1.5 (a couple of years ago) I found that it was written in a
sufficiently new dialect of C++ that it didn't want to go down the gcc
2.7.mumble that I was running on the intended FreeBSD box. One short
upgrade of FreeBSD later I had a newer version of gcc in the base
system and it was building and running SRecord.
#include <rant/c++/moving-target>
-Frank McConnell