Re: [cc65] Bankswitching with ld65

From: MagerValp <MagerValp1cling.gu.se>
Date: 2007-06-15 10:25:13
>>>>> "MH" == Mike Harris <atarimike@wavecable.com> writes:

MH> How would I set this up in the linker config file? In the MEMORY
MH> section, would I have a line for each bank I want? Or would that
MH> go in the SEGMENTS section? I'm also not sure how to make it not
MH> get confused as each bank would have the same physical address.

You use multiple memory sections:

MEMORY {
  BANK1: start = $8000, size = $4000;
  BANK2: start = $8000, size = $4000;
}

then place your segments into whichever bank you want them.

-- 
    ___          .     .  .         .       . +  .         .      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 Fri Jun 15 10:25:21 2007

This archive was generated by hypermail 2.1.8 : 2007-06-15 10:25:24 CEST