[cc65] ld65 configuration files

From: Tachdaun <tachdaun1gmail.com>
Date: 2009-01-05 21:22:43
Hi, I'm trying to figure out how to manipulate the config file to build 
a NES file, but with no CHR-ROM, that is, the sprite graphic data.
Instead of being in ROM, I need it to be in RAM, so no CHR-ROM block is 
needed.
The offset $0005 of the iNES header must be 0 ( speciefies number of 
CHR-ROM banks ) to have access to CHR-RAM, if I change it
by hand after compiling, it works fine. I just want to know how to 
specify it from the linker config file. ( if it's possible )
So, any clues?
And, how can I specify the contents of a memory area or segment, as 
HEADER, in this example?

Thanks!

built-in nes.cfg file: ( relevant lines, only )
----------------------------------

MEMORY {
...
    # INES Cartridge Header
    HEADER: start = $0, size = $10, file = %O ,fill = yes;
...
    # 1 8k CHR Bank
    ROM2: start = $0000, size = $2000, file = %O, fill = yes;
...
}

SEGMENTS {
    HEADER:   load = HEADER,          type = ro;
...
    CHARS:    load = ROM2,            type = rw;
...
}
...
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jan 5 20:23:01 2009

This archive was generated by hypermail 2.1.8 : 2009-01-05 20:23:02 CET