Path: utzoo!utgpu!cunews!bcars8!bnrgate!bigsur!bnr-rsc!mwandel From: mwandel@bnr-rsc.UUCP (Markus Wandel) Newsgroups: comp.sys.amiga.tech Subject: Re: ROMable code generation Message-ID: <3258@bnr-rsc.UUCP> Date: 27 Jul 90 19:17:08 GMT References: <9007231914.AA15506@virgo> <13461@cbmvax.commodore.com> Reply-To: mwandel@bnr-rsc.UUCP (Markus Wandel) Organization: Bell-Northern Research, Ottawa, Canada Lines: 28 In article <13461@cbmvax.commodore.com> valentin@cbmvax (Valentin Pepelea) writes: >In article <9007231914.AA15506@virgo> 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. > >There is a program on the Software Toolkit available frlom CATS that will >translate Amiga binary modules into Motorola-S format. But to my knowledge, >A68K can produce S files directly anyway. Unfortunately, the Commodore object module converter ("AbsLoad" if I recall correctly) only allows you to specify one starting address, and then it links all code, data, and BSS (!) hunks together at that address. So much for ROMable code, unless you want to define all your variables as constant addresses (in assembly). That was a really old version of the program though, maybe this has been fixed since. Just get "UnHunk". It's on a low-numbered (<40) Fred Fish disk, allows separate base addresses for code, data, and BSS segments, and comes with source code so you can fix it if it still doesn't suit you. I've used this for ROM code generation for a 68008 based target, and for kickstart patches, and it works *great*. Free, too. Markus Wandel