-
Notifications
You must be signed in to change notification settings - Fork 0
/
gidemo.cfg
53 lines (53 loc) · 2.29 KB
/
gidemo.cfg
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FEATURES {
STARTADDRESS: default = $0801;
}
SYMBOLS {
__LOADADDR__: type = import;
__EXEHDR__: type = import;
__STACKSIZE__: type = weak, value = $0400; # 1k stack
__HIMEM__: type = weak, value = $CFFF;
}
MEMORY {
ZP: file = "", define = yes, start = $0002, size = $001A;
LOADADDR: file = %O, start = %S - 2, size = $0002;
HEADER: file = %O, define = yes, start = %S, size = $000D;
FILLER: file = %O, start = __HEADER_LAST__, size = $1000 - __HEADER_LAST__, fill = yes;
BMPMETA: file = %O, start = $1000, size = $1000, fill = yes;
SPRITES: file = %O, start = $2000, size = $2800, fill = yes;
UTIL: file = %O, start = $4800, size = $1400, fill = yes;
CHARSET: file = %O, define = yes, start = $5C00, size = $0400, type = ro, fill = yes;
FILLER2: file = %O, start = $6000, size = $2000, fill = yes;
MAIN: file = %O, define = yes, start = $8000, size = __HIMEM__ - $8000, fill = yes;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
LOADADDR: load = LOADADDR, type = ro;
EXEHDR: load = HEADER, type = ro;
STARTUP: load = FILLER, type = ro;
LOWCODE: load = MAIN, type = ro, optional = yes;
CODE: load = MAIN, type = ro;
RODATA: load = MAIN, type = ro;
DATA: load = MAIN, type = rw;
INIT: load = SPRITES, type = rw;
ONCE: load = SPRITES, type = ro, define = yes;
BSS: load = MAIN, type = bss, define = yes;
# sprites: load = SPRITES, type = ro;
charset: load = CHARSET, type = ro;
bmpmeta: load = BMPMETA, type = ro;
util: load = UTIL, type = ro;
}
FEATURES {
CONDES: type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__,
segment = ONCE;
CONDES: type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__,
segment = RODATA;
CONDES: type = interruptor,
label = __INTERRUPTOR_TABLE__,
count = __INTERRUPTOR_COUNT__,
segment = RODATA,
import = __CALLIRQ__;
}