]> git.sur5r.net Git - cc65/blob - cfg/telestrat.cfg
b9f0b40261dfbf4f78c2537464ef8b0fd54a29c7
[cc65] / cfg / telestrat.cfg
1 SYMBOLS {
2
3     __ORIXHDR__:   type = import;
4
5     __STACKSIZE__: type = weak, value = $0800; # 2K stack
6
7     __RAMEND__:    type = weak, value = $9800;
8 }
9 MEMORY {
10     ZP:      file = "", define = yes, start = $00E0,            size = $001A;
11     ORIXHDR: file = %O, type   = ro,  start = $0000,            size = $001F;
12     BASHEAD: file = %O, define = yes, start = $0801,            size = $000D;
13     MAIN:    file = %O, define = yes, start = __BASHEAD_LAST__, size = __RAMEND__ - __MAIN_START__;
14     BSS:     file = "",               start = __ONCE_RUN__,     size = __RAMEND__ - __STACKSIZE__ - __ONCE_RUN__;
15 }
16 SEGMENTS {
17     ZEROPAGE: load = ZP,      type = zp;
18     ORIXHDR:  load = ORIXHDR, type = ro;
19     STARTUP:  load = MAIN,    type = ro;
20     LOWCODE:  load = MAIN,    type = ro,  optional = yes;
21     CODE:     load = MAIN,    type = ro;
22     RODATA:   load = MAIN,    type = ro;
23     DATA:     load = MAIN,    type = rw;
24     INIT:     load = MAIN,    type = rw;
25     ONCE:     load = MAIN,    type = ro,  define   = yes;
26     BASTAIL:  load = MAIN,    type = ro,  optional = yes;
27     BSS:      load = BSS,     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 }