🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4621

Re: ROMable code generation

#4621
From: Eric Black
Date: Mon, 30 Jul 1990 17:22
34 lines
2194 bytes
In article <9007231914.AA15506@virgo> <finkel%math.tau.ac.il@CUNYVM.CUNY.EDU> writes:
>
>I'm working on a project which requires ROMable code generation. I use
>A68k, and I would like to know if there is a tool that will relocate an
>amiga load file into an apsolute address, and strip all the headers
>from the file, providing me with a binary file suitable for burning into
>an EPROM. it would be nice if it had an option to split the files into
>odd/even bytes, but that's really only a small extra bonus.

Look at "unhunk" on Fish Disk 26.  It takes Amiga load files, processes
the hunks and collects them into code, initialized data, and uninitialized
data segments.  Ordinarily you will specify the starting Code address as
your ROM address, and let the initialized data get tucked in just after
the code; specify your RAM address for uninitialized data (usual caveats
apply for initialized data [constants] to be just that -- constants --
and to be copied into RAM if you expect change them).

A separate program (provided with unhunk) takes the output file, which
looks a lot like a UNIX a.out file, and outputs Motorola S-records.
If you need some other format, like Intel ':'-records, you can use
it as a model.  Doesn't split into even/odd ROMs, but many PROM programmers
do that for you, or you can make the S-record translator do that pretty
easily, I would think.

Good luck!  Cross-developing embedded code on the Amiga is pretty nice,
isn't it?

-Eric
(disclaimer: I am the author of unhunk; glad it's of use!)

-- 
Eric Black	"Garbage in, Gospel out"
Atherton Technology, 1333 Bordeaux Dr., Sunnyvale, CA, 94089
  Email: ericb@Atherton.COM     Voice: +1 408 734 9822
Technical Details
Message-ID: <28000@mango.athertn.Atherton.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!nsc!pyramid!athertn!ericb
References: <9007231914.AA15506@virgo> <13461@cbmvax.commodore.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!nsc!pyramid!athertn!ericb
From: ericb@athertn.Atherton.COM (Eric Black)
Newsgroups: comp.sys.amiga.tech
Subject: Re: ROMable code generation
Message-ID: <28000@mango.athertn.Atherton.COM>
Date: 30 Jul 90 17:22:40 GMT
References: <9007231914.AA15506@virgo> <13461@cbmvax.commodore.com>
Reply-To: ericb@Atherton.COM (Eric Black)
Organization: Atherton Technology, Sunnyvale, CA
Lines: 33