RE: [cc65] Bankswitching with ld65

From: MagerValp <MagerValp1cling.gu.se>
Date: 2007-06-15 12:30:24
>>>>> "MK" == Mark Keates <mark@mkeates.f9.co.uk> writes:

MK> Sometimes I find it useful to give the memory section the address
MK> of the offset it would have in the ROM itself. Then its address
MK> (e.g. 24 bits) can be used in code to calc the required 'bank'
MK> value you set the appropriate memory register too in order to
MK> switch in the bank, e.g. for making a table of jmp-addresses.

MK> In the Segments section you then can use 'run=' to specific
MK> the memory area that the linker will generate the runtime
MK> addresses for labels within that bank.

Ooh, nice trick.

-- 
    ___          .     .  .         .       . +  .         .      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 12:30:34 2007

This archive was generated by hypermail 2.1.8 : 2007-06-15 12:30:36 CEST