Re: [cc65] Segments and banking

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-05-29 17:56:22


On Tue, May 29, 2001 at 10:41:07AM -0400, Mark Keates wrote:
> Can the linker 'pad' segments to their full size such
> that a resulting executable could be burnt straight to an
> eprom for use in a cartridge. The Atari 8-bits have bank
> switching carts (and presumably the Commodores can too)
> and so this would be quite useful. Or would a small utility
> program be better for 'preparing' the rom image?

The linker cannot pad segments but it can pad memory areas. So just make each
bank a separate memory area (this is also necessary because the banks share
the same run address), then use the fill attribute for the memory area and the
same output file name for all the banks. in addition to that, you may want to
use the fillval attribute to set the value used to fill these areas to $FF if
you're using an EPROM (the default for the fill value is zero).

Regards


        Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:40 CET