]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/nes.cfg
Export start and size of the ZP memory area
[cc65] / src / ld65 / cfg / nes.cfg
1 MEMORY {
2     ZP: start = $02, size = $1A, type = rw, define = yes;
3     RAM: start = $03FF, size = $7BFF, file = %O;
4 }
5 SEGMENTS {
6     CODE: load = RAM, type = wprot;
7     RODATA: load = RAM, type = wprot;
8     DATA: load = RAM, type = rw;
9     BSS: load = RAM, type = bss, define = yes;
10     ZEROPAGE: load = ZP, type = zp;
11 }
12 FEATURES {
13     CONDES: segment = RODATA,
14             type = constructor,
15             label = __CONSTRUCTOR_TABLE__,
16             count = __CONSTRUCTOR_COUNT__;
17     CONDES: segment = RODATA,
18             type = destructor,
19             label = __DESTRUCTOR_TABLE__,
20             count = __DESTRUCTOR_COUNT__;
21 }
22 SYMBOLS {
23     __STACKSIZE__ = $800;       # 2K stack
24 }