]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/cbm610.cfg
Improved PET-II support
[cc65] / src / ld65 / cfg / cbm610.cfg
1 MEMORY {
2     BASICHDR: start = $01, size = $50, type = rw, fill = yes, fillval = 0, file = %O;
3     ZP: start = $51, size = $AD, type = rw, define = yes, fill = yes, fillval = 0, file = %O;
4     STARTUP: start = $00FE, size = $102, fill = yes, fillval = 0, file = %O;
5     PAGE2:   start = $0200, size = $100, fill = yes, fillval = 0, file = %O;
6     PAGE3:   start = $0300, size = $100, fill = yes, fillval = 0, file = %O;
7     RAM:     start = $0400, size = $FAAE, file = %O;
8 }
9 SEGMENTS {
10     BASICHDR: load = BASICHDR, type = rw;
11     STARTUP:  load = STARTUP,  type = rw;
12     PAGE2:    load = PAGE2,    type = rw;
13     PAGE3:    load = PAGE3,    type = rw;
14     LOWCODE:  load = RAM,      type = wprot, optional = yes;
15     CODE:     load = RAM,      type = wprot;
16     RODATA:   load = RAM,      type = wprot;
17     DATA:     load = RAM,      type = rw;
18     BSS:      load = RAM,      type = bss, define = yes;
19     ZEROPAGE: load = ZP,       type = zp;
20     EXTZP:    load = ZP,       type = rw, define = yes;
21 }
22 FEATURES {
23     CONDES: segment = RODATA,
24             type = constructor,
25             label = __CONSTRUCTOR_TABLE__,
26             count = __CONSTRUCTOR_COUNT__;
27     CONDES: segment = RODATA,
28             type = destructor,
29             label = __DESTRUCTOR_TABLE__,
30             count = __DESTRUCTOR_COUNT__;
31     # condes functions with type 2 are called in the interrupt
32     CONDES: segment = RODATA,
33             type = 2,
34             label = __IRQFUNC_TABLE__,
35             count = __IRQFUNC_COUNT__;
36 }
37 SYMBOLS {
38     __STACKSIZE__ = $800;       # 2K stack
39 }