Re: [cc65] DASM RORG?

From: MagerValp <MagerValp1cling.gu.se>
Date: 2004-07-13 08:44:05
>>>>> "JK" == Johan Kotlinski <johan@littlesounddj.com> writes:

JK> I am trying to port the Covert Bitops loading system from DASM to
JK> CA65, but ran into problems with the RORG (relocatable origin)
JK> pseudo-op... Is there anything similar in CA65, or any ways to
JK> achieve the same thing?

In the linker config you can define a segment that LOADs at one
address, but RUNs at another:

  MEMORY {
      FLASH:  start = $2000, size = $1e00;
      ROM:    start = $c000, size = $4000, file = %O, define = yes;
  }
  SEGMENTS {
      RELOC:  load = ROM, run = FLASH, type = rw, define = yes;
  }

I think that you can also use the .org command to the same effect:

  http://www.cc65.org/doc/ca65-10.html#ss10.68

-- 
    ___          .     .  .         .       . +  .         .      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 Jul 13 08:44:09 2004

This archive was generated by hypermail 2.1.8 : 2004-07-13 08:44:17 CEST