]> git.sur5r.net Git - cc65/blob - cfg/nes.cfg
Fixed _textcolor definition.
[cc65] / cfg / nes.cfg
1 SYMBOLS {
2     __STACKSIZE__: type = weak, value = $0300; # 3 pages stack
3 }
4 MEMORY {
5     ZP:     file = "", start = $0002, size = $001A, type = rw, define = yes;
6
7     # INES Cartridge Header
8     HEADER: file = %O, start = $0000, size = $0010, fill = yes;
9
10     # 2 16K ROM Banks
11     # - startup
12     # - code
13     # - rodata
14     # - data (load)
15     ROM0:   file = %O, start = $8000, size = $7FFA, fill = yes, define = yes;
16
17     # Hardware Vectors at End of 2nd 8K ROM
18     ROMV:   file = %O, start = $FFFA, size = $0006, fill = yes;
19
20     # 1 8k CHR Bank
21     ROM2:   file = %O, start = $0000, size = $2000, fill = yes;
22
23     # standard 2k SRAM (-zeropage)
24     # $0100-$0200 cpu stack
25     # $0200-$0500 3 pages for ppu memory write buffer
26     # $0500-$0800 3 pages for cc65 parameter stack
27     SRAM:   file = "", start = $0500, size = __STACKSIZE__, define = yes;
28
29     # additional 8K SRAM Bank
30     # - data (run)
31     # - bss
32     # - heap
33     RAM:    file = "", start = $6000, size = $2000, define = yes;
34 }
35 SEGMENTS {
36     ZEROPAGE: load = ZP,              type = zp;
37     HEADER:   load = HEADER,          type = ro;
38     STARTUP:  load = ROM0,            type = ro,  define   = yes;
39     LOWCODE:  load = ROM0,            type = ro,  optional = yes;
40     ONCE:     load = ROM0,            type = ro,  optional = yes;
41     CODE:     load = ROM0,            type = ro,  define   = yes;
42     RODATA:   load = ROM0,            type = ro,  define   = yes;
43     DATA:     load = ROM0, run = RAM, type = rw,  define   = yes;
44     VECTORS:  load = ROMV,            type = rw;
45     CHARS:    load = ROM2,            type = rw;
46     BSS:      load = RAM,             type = bss, define   = yes;
47 }
48 FEATURES {
49     CONDES: type    = constructor,
50             label   = __CONSTRUCTOR_TABLE__,
51             count   = __CONSTRUCTOR_COUNT__,
52             segment = ONCE;
53     CONDES: type    = destructor,
54             label   = __DESTRUCTOR_TABLE__,
55             count   = __DESTRUCTOR_COUNT__,
56             segment = RODATA;
57     CONDES: type    = interruptor,
58             label   = __INTERRUPTOR_TABLE__,
59             count   = __INTERRUPTOR_COUNT__,
60             segment = RODATA,
61             import  = __CALLIRQ__;
62 }