[comp.sys.atari.st] Linking ROMable code on the ST

daffy@warwick.UUCP (Steve Hunt) (03/18/87)

Hi ST-folk,

	I'm attempting to link a program that resides partly in ROM
and partly in RAM.  It won't be run on an ST, I'm just using the ST
to develop and link the program.

	The program is divided into two modules, let us call them
"one" and "two."  The code in module "one" is to reside in RAM at
address $4000.  The code in module "two" is to reside in ROM at
address $80000.  The data from both sections will reside in RAM at
$1000 up.

	Now, the question is this: how can I go about linking the beast?
I've got the Developer's Kit but LINK68 and LO68 don't seem to provide
facilities for doing this sort of thing.  Of course, the two sections
need to know about each other's symbols.  So I can't get away with linking
the two parts separately.

	BTW, I tried welding the two assembler files together with appropriate
ORG directives to $4000 and $80000, but to my dismay the assembler took
about 20 minutes to produce a HUGE object file with... guess what...
$79000 nulls up front....

	Ideally I'd like to link the modules in order to satisfy the references
between them, but end up with 2 object files (preferably in S-record format)
which I can then load into the appropriate places in store.

	Any help much appreciated!

Thanks in advance,

				Steve Hunt.

-- 
"University computer centers are notorious for being run by
 empty-headed bozos."       -- Henry Spencer.

Steve Hunt, DONALD Programmer 1st Class
Mail: daffy@warwick.UUCP   sahunt@warwick.UUCP    daffy@uk.ac.warwick.ubu
Home: "The Silo", 15 Molesworth Avenue, Stoke Green, Coventry CV3 1BU, UK
Tel:  0203 447765