]> git.sur5r.net Git - cc65/blob - cfg/plus4.cfg
Restore src/cc65/locals.c:278 to its orignal state
[cc65] / cfg / plus4.cfg
1 FEATURES {
2     STARTADDRESS: default = $1001;
3 }
4 SYMBOLS {
5     __LOADADDR__:  type = import;
6     __EXEHDR__:    type = import;
7     __STACKSIZE__: type = weak, value = $0800; # 2k stack
8     __HIMEM__:     type = weak, value = $FD00;
9 }
10 MEMORY {
11     ZP:       file = "", define = yes, start = $0002,           size = $001A;
12     LOADADDR: file = %O,               start = %S - 2,          size = $0002;
13     HEADER:   file = %O, define = yes, start = %S,              size = $000D;
14     MAIN:     file = %O, define = yes, start = __HEADER_LAST__, size = __HIMEM__ - __MAIN_START__ - __STACKSIZE__;
15 }
16 SEGMENTS {
17     ZEROPAGE: load = ZP,       type = zp;
18     LOADADDR: load = LOADADDR, type = ro;
19     EXEHDR:   load = HEADER,   type = ro;
20     STARTUP:  load = MAIN,     type = ro;
21     LOWCODE:  load = MAIN,     type = ro,  optional = yes;
22     CODE:     load = MAIN,     type = ro;
23     ONCE:     load = MAIN,     type = ro,  optional = yes;
24     RODATA:   load = MAIN,     type = ro;
25     DATA:     load = MAIN,     type = rw;
26     INIT:     load = MAIN,     type = bss;
27     BSS:      load = MAIN,     type = bss, define   = yes;
28 }
29 FEATURES {
30     CONDES: type    = constructor,
31             label   = __CONSTRUCTOR_TABLE__,
32             count   = __CONSTRUCTOR_COUNT__,
33             segment = ONCE;
34     CONDES: type    = destructor,
35             label   = __DESTRUCTOR_TABLE__,
36             count   = __DESTRUCTOR_COUNT__,
37             segment = RODATA;
38     CONDES: type    = interruptor,
39             label   = __INTERRUPTOR_TABLE__,
40             count   = __INTERRUPTOR_COUNT__,
41             segment = RODATA,
42             import  = __CALLIRQ__;
43 }