Re: [cc65] Problem with linker config files

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-02-24 19:29:34
On Tue, Feb 24, 2009 at 07:13:42PM +0100, Carlos wrote:
> all seems to work fine in my program, but when i try to define it like:
[...]
> i get weird results in my program. Are not both ways supposed to be equal?

I'm not sure if there are more differences, but without a "fill=yes"
attribute, memory area RAM will only contain as many bytes as are supplied by
the segment data. In the file, the byte supposed to be loaded at address $8000
will directly follow the last byte of the last segment in the RAM memory area.
If you load this image as is into memory, RAM2 will not be loaded at the
expected address. 

If you compare the generated binaries, you will notice that they differ in
size.

See

        http://www.cc65.org/doc/ld65-5.html#ss5.5

for a description of the "fill" attribute.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 Feb 24 19:31:59 2009

This archive was generated by hypermail 2.1.8 : 2009-02-24 19:32:01 CET