]> git.sur5r.net Git - cc65/blob - cfg/atari-asm.cfg
cfg/atari-xex.cfg: fix typo in comment
[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     MAIN:    file = %O, define = yes, start = %S,    size = $BC20 - %S;
18     TRAILER: file = %O,               start = $0000, size = $0006;
19 }
20 SEGMENTS {
21     ZEROPAGE: load = ZP,      type = zp,  optional = yes;
22     EXTZP:    load = ZP,      type = zp,  optional = yes; # to enable modules to be able to link to C and assembler programs
23     EXEHDR:   load = HEADER,  type = ro,  optional = yes;
24     MAINHDR:  load = MAINHDR, type = ro,  optional = yes;
25     CODE:     load = MAIN,    type = rw,                  define = yes;
26     RODATA:   load = MAIN,    type = ro   optional = yes;
27     DATA:     load = MAIN,    type = rw   optional = yes;
28     BSS:      load = MAIN,    type = bss, optional = yes, define = yes;
29     AUTOSTRT: load = TRAILER, type = ro,  optional = yes;
30 }