]> git.sur5r.net Git - cc65/blob - cfg/atmos.cfg
Replaced builtin linker configs with ordinary .cfg files.
[cc65] / cfg / atmos.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0800; # 2k stack
3 }
4 MEMORY {
5     ZP:      file = "", define = yes, start = $00E2, size = $001A;
6     TAPEHDR: file = %O, type   = ro,  start = $0000, size = $0011;
7     RAM:     file = %O, define = yes, start = $0500, size = $9300 - __STACKSIZE__;
8 }
9 SEGMENTS {
10     TAPEHDR:  load = TAPEHDR, type = ro;
11     STARTUP:  load = RAM,     type = ro;
12     LOWCODE:  load = RAM,     type = ro,                optional = yes;
13     INIT:     load = RAM,     type = ro,  define = yes, optional = yes;
14     CODE:     load = RAM,     type = ro;
15     RODATA:   load = RAM,     type = ro;
16     DATA:     load = RAM,     type = rw;
17     ZPSAVE:   load = RAM,     type = bss, define = yes;
18     BSS:      load = RAM,     type = bss, define = yes;
19     ZEROPAGE: load = ZP,      type = zp;
20 }
21 FEATURES {
22     CONDES: type    = constructor,
23             label   = __CONSTRUCTOR_TABLE__,
24             count   = __CONSTRUCTOR_COUNT__,
25             segment = INIT;
26     CONDES: type    = destructor,
27             label   = __DESTRUCTOR_TABLE__,
28             count   = __DESTRUCTOR_COUNT__,
29             segment = RODATA;
30     CONDES: type    = interruptor,
31             label   = __INTERRUPTOR_TABLE__,
32             count   = __INTERRUPTOR_COUNT__,
33             segment = RODATA,
34             import  = __CALLIRQ__;
35 }