]> git.sur5r.net Git - cc65/blob - cfg/c64.cfg
un-remove TABs in doc/using-make.sgml
[cc65] / cfg / c64.cfg
1 FEATURES {
2     STARTADDRESS: default = $0801;
3 }
4 SYMBOLS {
5     __LOADADDR__:  type = import;
6     __EXEHDR__:    type = import;
7     __STACKSIZE__: type = weak, value = $0800; # 2k stack
8     __HIMEM__:     type = weak, value = $D000;
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__ - __HEADER_LAST__;
15     BSS:      file = "",               start = __ONCE_RUN__,    size = __HIMEM__ - __STACKSIZE__ - __ONCE_RUN__;
16 }
17 SEGMENTS {
18     ZEROPAGE: load = ZP,       type = zp;
19     LOADADDR: load = LOADADDR, type = ro;
20     EXEHDR:   load = HEADER,   type = ro;
21     STARTUP:  load = MAIN,     type = ro;
22     LOWCODE:  load = MAIN,     type = ro,  optional = yes;
23     CODE:     load = MAIN,     type = ro;
24     RODATA:   load = MAIN,     type = ro;
25     DATA:     load = MAIN,     type = rw;
26     INIT:     load = MAIN,     type = rw;
27     ONCE:     load = MAIN,     type = ro,  define   = yes;
28     BSS:      load = BSS,      type = bss, define   = yes;
29 }
30 FEATURES {
31     CONDES: type    = constructor,
32             label   = __CONSTRUCTOR_TABLE__,
33             count   = __CONSTRUCTOR_COUNT__,
34             segment = ONCE;
35     CONDES: type    = destructor,
36             label   = __DESTRUCTOR_TABLE__,
37             count   = __DESTRUCTOR_COUNT__,
38             segment = RODATA;
39     CONDES: type    = interruptor,
40             label   = __INTERRUPTOR_TABLE__,
41             count   = __INTERRUPTOR_COUNT__,
42             segment = RODATA,
43             import  = __CALLIRQ__;
44 }