Re: [cc65] --start-addr questions

From: Ullrich von Bassewitz <>
Date: 2011-11-20 12:18:56
On Sat, Nov 19, 2011 at 06:45:22PM -0700, Egan Ford wrote:
> When using --start-addr with --listing, the resulting listing is
> "relocatable" I assume (a lot of "rr"s), however the output is not.

Both have nothing to do with each other. --start-addr passes a value to the
linker, which makes it available as the magic %S for use in the linker config.
It depends on the linker configuration, if it makes use of %S.

--start-addr has absolutely nothing to do with the listing being relocatable.
See here:

> If I go back to using .ORG then the listing is correct.  Is there a
> different way to do this to get the correct listing?

The assembler generates relocatable code by default. This means that there is
no information about the final address available to the assembler. As a
consequence, there's no way to add this to a listing generated by the
assembler. Using .ORG you can switch to absolute mode. In absolute mode, the
assembler assembles the code so that it is able to run at a specific address.
In this case, it will also add this information to the listing.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Nov 20 12:19:04 2011

This archive was generated by hypermail 2.1.8 : 2011-11-20 12:19:08 CET