]> git.sur5r.net Git - cc65/blob - cfg/atari2600.cfg
Adds test code for the Atari (xex) linker file format.
[cc65] / cfg / atari2600.cfg
1 # Atari VCS 2600 linker configuration file for cc65
2 #
3 # Florent Flament (contact@florentflament.com), 2017
4
5 SYMBOLS {
6     __STACKSIZE__: type = weak, value = $0010;   # 16 Bytes system stack
7 }
8
9 MEMORY {
10     RAM: file = "", start = $0080, size = $0080 - __STACKSIZE__, define = yes;
11     ROM: file = %O, start = $F000, size = $1000, fill = yes, fillval = $FF;
12 }
13
14 SEGMENTS {
15     ZEROPAGE: load = RAM,            type = zp;
16     STARTUP:  load = ROM,            type = ro;
17     CODE:     load = ROM,            type = ro;
18     RODATA:   load = ROM,            type = ro,  optional = yes;
19     DATA:     load = ROM, run = RAM, type = rw,  optional = yes, define = yes;
20     BSS:      load = RAM,            type = bss, optional = yes;
21     VECTORS:  load = ROM,            type = ro,                                start = $FFFA;
22 }