[cc65] drive code with shared segments

From: MagerValp <MagerValp1cling.gu.se>
Date: 2005-04-19 09:07:35
I'm experimenting with irq loaders, and I've written some code based
on Lasse Öörni's rant at covertbitops. I added support for more drives
than the 1541, and now I need an efficient way of storing them in
memory, since the drive code is loaded without a fastloader (at least
in theory). I have four code versions (1541, 1581, cmd hd, cmd fd),
and they all share the first 200 bytes or so, only the last 100 bytes
are unique to each driver. What I would like is for the common code to
only be included once, followed by the custom code for each drive. The
problem is that the size of the common segment is not known, as I'm
still working on the code. To get the linker to do its magic, I have
to include (common + 1541), (common + 1581), etc, instead of common,
1541, 1581, and so on. Is there a solution for this, apart from
tweaking the segment size manually each time I assemble? I could write
a script that generates the linker config, but that would be a hassle.

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Apr 19 09:07:42 2005

This archive was generated by hypermail 2.1.8 : 2005-04-19 09:07:44 CEST