]> git.sur5r.net Git - cc65/blob - cfg/pce.cfg
added compiler/assembler target, lib compiles
[cc65] / cfg / pce.cfg
1 MEMORY {
2
3         ZP:  start = $00, size = $1A, type = rw, define = yes;
4
5         # INES Cartridge Header
6         #HEADER: start = $0, size = $10, file = %O ,fill = yes;
7
8         # 2 16K ROM Banks
9         # - startup
10         # - code
11         # - rodata
12         # - data (load)
13         # 1 8k CHR Bank
14         ROM0: start = $e000, size = $1ff6, file = %O ,fill = yes, define = yes;
15     # Hardware Vectors at End of 2nd 8K ROM
16         ROMV: start = $fff6, size = $a, file = %O,fill = yes;
17
18         ROM: start = $6000, size = $8000, file = %O, fill = yes,define=yes;
19
20
21         # standard 2k SRAM (-zeropage)
22         # $0100-$0200 cpu stack
23         # $0200-$0500 3 pages for ppu memory write buffer
24         # $0500-$0800 3 pages for cc65 parameter stack
25         #SRAM: start = $0500, size = $0300, define = yes;
26
27         # additional 8K SRAM Bank
28         # - data (run)
29         # - bss
30         # - heap
31 #       RAM: start = $2200, size = $1000, define = yes;
32 #       RAM2: start = $3200, size = $0e00, define = yes;
33         RAM: start = $2200, size = $1e00, define = yes;
34
35 }
36 SEGMENTS {
37     #HEADER: load = HEADER, type = wprot;
38
39     #aSTARTUP: load = ROM0, type = wprot, define = yes;
40     STARTUP: load = ROM0, type = wprot, define = yes;
41
42         CODE: load = ROM, type = wprot, define = yes;
43     RODATA: load = ROM, type = wprot, define = yes;
44
45         DATA: load = ROM0, run= RAM, type = rw, define = yes;
46 #       BSS: load = RAM2, type = bss, define = yes;
47         BSS: load = RAM, type = bss, define = yes;
48
49         VECTORS: load = ROMV, type = rw, define = yes;
50     #CHARS: load = ROM2, type = rw;
51
52
53     ZEROPAGE: load = ZP, type = zp, define = yes;
54
55 }
56 FEATURES {
57     CONDES: segment = STARTUP,
58             type=constructor,
59             label=__CONSTRUCTOR_TABLE__,
60             count=__CONSTRUCTOR_COUNT__;
61     CONDES: segment = STARTUP,
62             type=destructor,
63             label=__DESTRUCTOR_TABLE__,
64             count=__DESTRUCTOR_COUNT__;
65 }
66 SYMBOLS {
67     __STACKSIZE__ = $0300;      # 3 pages stack
68 }