Re: [cc65] Problems with ORG directive and linker

From: Karri Kaksonen <karri1sipo.fi>
Date: 2011-03-31 06:26:11
On 03/30/2011 08:30 PM, Groepaz wrote:
> On Mittwoch 30 März 2011, you wrote:
>> but due to the unusual ORG semantics, the emitted object
>> file is different. It is a bit weird to realize that the addresses as
>> emitted in listing files are not to be interpreted as the actual
>> addresses where stuff will end up.
> its not unusual actually - every toolchain that includes an external linker
> works like this :)
>
> maybe something like ACME is a better idea for this particular project - it
> works like you need it.
>

Have you examined the option to replace all these .orgs with labels instead?

I mean instead of having
   .org $1234

...

   jsr $1234

You would use
org1234:
...

   jsr org1234

And let the linker assemble the stuff as it sees fit. The things may not 
end up in the right locations but the code could work.

--
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Mar 31 06:26:26 2011

This archive was generated by hypermail 2.1.8 : 2011-03-31 06:26:29 CEST