File: multi-xex.cfg

package info (click to toggle)
cc65 2.19-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,268 kB
  • sloc: ansic: 117,151; asm: 66,339; pascal: 4,248; makefile: 1,009; perl: 607
file content (35 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FEATURES {
    STARTADDRESS: default = $2E00;
}
MEMORY {
    ZP:      file = "", define = yes, start = $0082, size = $007E;
    # First memory segment in file, show message
    LOADER:  file = %O, start = $680, size = 128;
    # First memory segment in file, load over COLOR registers:
    COLOR:   file = %O, start = $2C4, size = 5;
    # Second memory segment, load at page 6:
    PAGE6:   file = %O, start = $600, size = 128;
    # Third memory segment in file, load over SDLST register:
    SDLST:   file = %O, start = $230, size = 2;
    # Main segment, load at "STARTADDRESS"
    MAIN:    file = %O, start = %S,   size = $BC20 - %S;
}
FILES {
    %O: format = atari;
}
FORMATS {
    atari: runad = start,
           initad = LOADER: show_load;
}
SEGMENTS {
    ZEROPAGE: load = ZP,      type = zp,  optional = yes;
    # Place segments in memory areas:
    LOADER:   load = LOADER,  type = rw;
    COLOR:    load = COLOR,   type = rw;
    PAGE6:    load = PAGE6,   type = rw;
    SDLST:    load = SDLST,   type = rw;
    CODE:     load = MAIN,    type = rw;
    RODATA:   load = MAIN,    type = ro   optional = yes;
    DATA:     load = MAIN,    type = rw   optional = yes;
    BSS:      load = MAIN,    type = bss, optional = yes, define = yes;
}