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

From: Markus Stehr <bastetfurry1ircnet.de>
Date: 2012-08-10 00:13:40
Heyho List! :)

I am trying to compile an old programm with the latest SVN and got some
curious bugs in my config file, at least i think it is.

I have music on $1000, a charset at $2000 and cc65 should compile my
main programm to $3000, here is the config file:

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;
    CHARSET: start = $2000, size = $1000, file = %O, define = yes, fill
= yes;
    RAM:      file = %O, define = yes, start = $3000, size = $87F3 -
__STACKSIZE__;
}
SEGMENTS {
    LOADADDR: load = LOADADDR, type = ro;
    EXEHDR:   load = HEADER,   type = ro;
    STARTUP:  load = RAM,      type = ro;
    LOWCODE:  load = RAM,      type = ro,                optional = yes;
    INIT:     load = RAM,      type = ro,  define = yes, optional = yes;
    music:    load = MUSIC, type = ro;
    charset:  load = CHARSET, type = ro;
    CODE:     load = RAM,      type = ro;
    RODATA:   load = RAM,      type = ro;
    DATA:     load = RAM,      type = rw;
    ZPSAVE:   load = RAM,      type = bss;
    BSS:      load = RAM,      type = bss, define = yes;
    ZEROPAGE: load = ZP,       type = zp;
}
FEATURES {
    CONDES: segment = INIT,
	    type    = constructor,
	    label   = __CONSTRUCTOR_TABLE__,
	    count   = __CONSTRUCTOR_COUNT__;
    CONDES: segment = RODATA,
	    type    = destructor,
	    label   = __DESTRUCTOR_TABLE__,
	    count   = __DESTRUCTOR_COUNT__;
    CONDES: segment = RODATA,
	    type    = interruptor,
	    label   = __INTERRUPTOR_TABLE__,
	    count   = __INTERRUPTOR_COUNT__;
}

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?

Greets,
Markus

----------------------------------------------------------------------
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 00:13:55 2012

This archive was generated by hypermail 2.1.8 : 2012-08-10 00:13:59 CEST