]> git.sur5r.net Git - cc65/blob - testcode/lib/atari/multi-xex.cfg
Add support for INITAD to the Atari binary format.
[cc65] / testcode / lib / atari / multi-xex.cfg
1 FEATURES {
2     STARTADDRESS: default = $2E00;
3 }
4 MEMORY {
5     ZP:      file = "", define = yes, start = $0082, size = $007E;
6     # First memory segment in file, show message
7     LOADER:  file = %O, start = $680, size = 128;
8     # First memory segment in file, load over COLOR registers:
9     COLOR:   file = %O, start = $2C4, size = 5;
10     # Second memory segment, load at page 6:
11     PAGE6:   file = %O, start = $600, size = 128;
12     # Third memory segment in file, load over SDLST register:
13     SDLST:   file = %O, start = $230, size = 2;
14     # Main segment, load at "STARTADDRESS"
15     MAIN:    file = %O, start = %S,   size = $BC20 - %S;
16 }
17 FILES {
18     %O: format = atari;
19 }
20 FORMATS {
21     atari: runad = start,
22            initad = LOADER: show_load;
23 }
24 SEGMENTS {
25     ZEROPAGE: load = ZP,      type = zp,  optional = yes;
26     # Place segments in memory areas:
27     LOADER:   load = LOADER,  type = rw;
28     COLOR:    load = COLOR,   type = rw;
29     PAGE6:    load = PAGE6,   type = rw;
30     SDLST:    load = SDLST,   type = rw;
31     CODE:     load = MAIN,    type = rw;
32     RODATA:   load = MAIN,    type = ro   optional = yes;
33     DATA:     load = MAIN,    type = rw   optional = yes;
34     BSS:      load = MAIN,    type = bss, optional = yes, define = yes;
35 }