RE: [cc65] Trying to compile an old programm with custom c64.cfg, faulty config file?

From: Shawn Jefferson <sjefferson1shaw.ca>
Date: 2012-08-10 02:50:48
Hi,

I don't know what target you are using, but it probably has something to do
with the fact that your file is being loaded in at $7FF, and there is no
"fill" between the HEADER segment (in your file) and the MUSIC segment.

Unless I'm missing something that your target can do while loading this, I
suspect that's where your problem is.

Also, STARTUP, LOWCODE, and INIT are all in your RAM segment, so probably
not being loaded where you think they are ($080d).

> -----Original Message-----
> From: owner-cc65@musoftware.de [mailto:owner-cc65@musoftware.de] On Behalf
> Of Markus Stehr

<snip>

> SYMBOLS {
>     __LOADADDR__:  type = import;
>     __EXEHDR__:    type = import;
>     __STACKSIZE__: type = weak,   value = $0800; # 2k stack
> }
> MEMORY {
>     ZP:       file = "", define = yes, start = $0002, size = $001A;
>     LOADADDR: file = %O,               start = $07FF, size = $0002;
>     HEADER:   file = %O,               start = $0801, size = $000C;
>     MUSIC: start = $1000, size = $1000, file = %O, define = yes, fill =
> yes;
 
> The curious thing here is that the music is placed where the startup
> code should be, at $080d, and not at $1000.
> 
> So what am i missing here?


----------------------------------------------------------------------
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 Aug 10 02:51:10 2012

This archive was generated by hypermail 2.1.8 : 2012-08-10 02:51:13 CEST