]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/apple2enh-reboot.cfg
Made stacksize user-adjustable on the cmdline.
[cc65] / src / ld65 / cfg / apple2enh-reboot.cfg
1 # Configuration allowing for 4KB of HIGHCODE optimized for programs
2 # loaded with LOADER.SYSTEM and calling rebootafterexit()
3
4 FEATURES {
5     STARTADDRESS: default = $0800;
6 }
7 MEMORY {
8     ZP:     start = $0080, size = $001A,                 define = yes;
9     HEADER: start = $0000, size = $0004,      file = %O;
10     RAM:    start = %S,    size = $BF00 - %S, file = %O, define = yes;
11     MOVE:   start = $0000, size = $FFFF,      file = %O, define = yes;
12     LC:     start = $D000, size = $1000,                 define = yes;
13 }
14 SEGMENTS {
15     ZEROPAGE: load = ZP,              type = zp;
16     EXEHDR:   load = HEADER,          type = ro;
17     STARTUP:  load = RAM,             type = ro;
18     LOWCODE:  load = RAM,             type = ro;
19     CODE:     load = RAM,             type = ro;
20     RODATA:   load = RAM,             type = ro;
21     DATA:     load = RAM,             type = rw;
22     ZPSAVE:   load = RAM,             type = bss, define   = yes;
23     BSS:      load = RAM,             type = bss, define   = yes;
24     INIT:     load = MOVE, run = RAM, type = ro,  define   = yes;
25     HIGHCODE: load = MOVE, run = LC,  type = ro,  optional = yes;
26 }
27 FEATURES {
28     CONDES: segment = INIT,
29             type    = constructor,
30             label   = __CONSTRUCTOR_TABLE__,
31             count   = __CONSTRUCTOR_COUNT__;
32     CONDES: segment = RODATA,
33             type    = destructor,
34             label   = __DESTRUCTOR_TABLE__,
35             count   = __DESTRUCTOR_COUNT__;
36     CONDES: type    = interruptor,
37             segment = RODATA,
38             label   = __INTERRUPTOR_TABLE__,
39             count   = __INTERRUPTOR_COUNT__;
40 }
41 SYMBOLS {
42     __STACKSIZE__: value = $0800, weak = yes; # 2k stack
43 }