]> git.sur5r.net Git - cc65/blob - cfg/c1p.cfg
Set default start address to 0x300.
[cc65] / cfg / c1p.cfg
1 FEATURES {
2     CONDES: type    = constructor,
3             label   = __CONSTRUCTOR_TABLE__,
4             count   = __CONSTRUCTOR_COUNT__,
5             segment = INIT;
6     CONDES: type    = destructor,
7             label   = __DESTRUCTOR_TABLE__,
8             count   = __DESTRUCTOR_COUNT__,
9             segment = RODATA;
10     STARTADDRESS: default = $0300;
11 }
12 SYMBOLS {
13     __STACKSIZE__: type = weak, value = $0400; # 1k stack
14     __HIMEM__:     type = weak, value = $2000; # Presumed RAM end
15 }
16 MEMORY {
17     ZP:       file = "", define = yes, start = $0002, size = $001A;
18     RAM:      file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
19 }
20 SEGMENTS {
21     STARTUP:  load = RAM, type = ro;
22     LOWCODE:  load = RAM, type = ro,                optional = yes;
23     INIT:     load = RAM, type = ro,  define = yes, optional = yes;
24     CODE:     load = RAM, type = rw;
25     RODATA:   load = RAM, type = rw;
26     DATA:     load = RAM, type = rw;
27     BSS:      load = RAM, type = bss, define = yes;
28     ZEROPAGE: load = ZP,  type = zp;
29 }