]> git.sur5r.net Git - cc65/blob - cfg/atari-asm.cfg
Merge pull request #249 from polluks/master
[cc65] / cfg / atari-asm.cfg
1 FEATURES {
2     STARTADDRESS: default = $2E00;
3 }
4 SYMBOLS {
5     __EXEHDR__:          type = import;
6     __AUTOSTART__:       type = import;  # force inclusion of autostart "trailer"
7     __STARTADDRESS__:    type = export, value = %S;
8 }
9 MEMORY {
10     ZP:            file = "", define = yes, start = $0082, size = $007E;
11
12 # file header, just $FFFF
13     HEADER:        file = %O,               start = $0000, size = $0002;
14
15 # "main program" load chunk
16     MAINHDR:       file = %O,               start = $0000, size = $0004;
17     RAM:           file = %O, define = yes, start = %S,    size = $BC20 - %S;
18     TRAILER:       file = %O,               start = $0000, size = $0006;
19 }
20 SEGMENTS {
21     EXEHDR:    load = HEADER,     type = ro,                optional = yes;
22     MAINHDR:   load = MAINHDR,    type = ro,                optional = yes;
23     CODE:      load = RAM,        type = ro,  define = yes, optional = yes;
24     RODATA:    load = RAM,        type = ro                 optional = yes;
25     DATA:      load = RAM,        type = rw                 optional = yes;
26     BSS:       load = RAM,        type = bss, define = yes, optional = yes;
27     ZEROPAGE:  load = ZP,         type = zp,                optional = yes;
28     EXTZP:     load = ZP,         type = zp,                optional = yes; # to enable modules to be able to link to C and assembler programs
29     AUTOSTRT:  load = TRAILER,    type = ro,                optional = yes;
30 }