]> git.sur5r.net Git - cc65/blob - cfg/atarixl-largehimem.cfg
Default atatixl.cfg file now leaves the character generator at $E000.
[cc65] / cfg / atarixl-largehimem.cfg
1 FEATURES {
2     STARTADDRESS: default = $2400;
3 }
4
5 SYMBOLS {
6     __STACKSIZE__:       type = weak, value = $0800; # 2k stack
7     __STARTADDRESS__:    type = export, value = %S;
8     syschk:              type = import;  # force inclusion of SYSCHK
9     sramprep:            type = import;  # force inclusion of SRPREP
10 }
11
12 MEMORY {
13     ZP:            file = "", define = yes, start = $0082,                  size = $007E;
14
15 # just $FFFF
16     HEADER:        file = %O,               start = $0000,                  size = $0002;
17
18 # "system check" load chunk
19     SYSCHKHDR:     file = %O,               start = $0000,                  size = $0004;
20     SYSCHKCHNK:    file = %O,               start = $2E00,                  size = $0300;
21     SYSCHKTRL:     file = %O,               start = $0000,                  size = $0006;
22
23 # "shadow RAM preparation" load chunk
24     SRPREPHDR:     file = %O,               start = $0000,                  size = $0004;
25     SRPREPCHNK:    file = %O, define = yes, start = %S,                     size = $7C20 - %S - $07FF;  # $07FF: space for temp. chargen buffer, 1K aligned
26     SRPREPTRL:     file = %O,               start = $0000,                  size = $0006;
27
28 # "main program" load chunk
29     MAINHDR:       file = %O,               start = $0000,                  size = $0004;
30     RAM:           file = %O, define = yes, start = %S +
31                                                     __SAVEAREA_SIZE__ +
32                                                     __LOWDATA_SIZE__, size = $D000 -
33                                                                              __STACKSIZE__ -
34                                                                              %S -
35                                                                              __SAVEAREA_SIZE__ -
36                                                                              __LOWDATA_SIZE__;
37
38 # defines entry point into program
39     TRAILER:       file = %O,               start = $0000, size = $0006;
40
41 # address of relocated character generator
42     CHARGEN:       file = "", define = yes, start = $D800, size = $0400;
43
44 # memory beneath the ROM
45     HIDDEN_RAM:    file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
46 }
47
48 SEGMENTS {
49     EXEHDR:     load = HEADER,                      type = ro;
50
51     SYSCHKHDR:  load = SYSCHKHDR,                   type = ro,                optional = yes;
52     SYSCHK:     load = SYSCHKCHNK,                  type = rw,  define = yes, optional = yes;
53     SYSCHKTRL:  load = SYSCHKTRL,                   type = ro,                optional = yes;
54
55     SRPREPHDR:  load = SRPREPHDR,                   type = ro;
56     SAVEAREA:   load = SRPREPCHNK,                  type = bss, define = yes;  # shared btw. SRPREP and RAM
57     LOWDATA:    load = SRPREPCHNK,                  type = bss, define = yes;  #   "  "  "  "  "  "  "  "
58     SRPREP:     load = SRPREPCHNK,                  type = rw,  define = yes;
59     SHADOW_RAM:  load = SRPREPCHNK, run = HIDDEN_RAM, type = rw,  define = yes, optional = yes;
60     SHADOW_RAM2: load = SRPREPCHNK, run = HIDDEN_RAM, type = rw,  define = yes, optional = yes;
61     SRPREPTRL:  load = SRPREPTRL,                   type = ro;
62
63     MAINHDR:    load = MAINHDR,                     type = ro;
64     STARTUP:    load = RAM,                         type = ro,  define = yes;
65     LOWCODE:    load = RAM,                         type = ro,  define = yes, optional = yes;
66     INIT:       load = RAM,                         type = ro,                optional = yes;
67     CODE:       load = RAM,                         type = ro,  define = yes;
68     RODATA:     load = RAM,                         type = ro;
69     DATA:       load = RAM,                         type = rw;
70     BSS:        load = RAM,                         type = bss, define = yes;
71     ZEROPAGE:   load = ZP,                          type = zp;
72     EXTZP:      load = ZP,                          type = zp,                optional = yes;
73     AUTOSTRT:   load = TRAILER,                     type = ro;
74 }
75 FEATURES {
76     CONDES: type    = constructor,
77             label   = __CONSTRUCTOR_TABLE__,
78             count   = __CONSTRUCTOR_COUNT__,
79             segment = INIT;
80     CONDES: type    = destructor,
81             label   = __DESTRUCTOR_TABLE__,
82             count   = __DESTRUCTOR_COUNT__,
83             segment = RODATA;
84     CONDES: type    = interruptor,
85             label   = __INTERRUPTOR_TABLE__,
86             count   = __INTERRUPTOR_COUNT__,
87             segment = RODATA,
88             import  = __CALLIRQ__;
89 }