-
Notifications
You must be signed in to change notification settings - Fork 0
/
fram.cfg
34 lines (30 loc) · 951 Bytes
/
fram.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
MEMORY
{
ZP: start=$0, size=$100, type=rw, define=yes;
RAM: start=$0200, size=$5600, type=rw, define=yes;
ROM: start=$5800, size=$2000, type=ro, define=yes, fill=yes, file=%O;
}
SEGMENTS
{
ZEROPAGE: load=ZP, type=zp, define=yes;
DATA: load = ROM, type = rw, define = yes, run = RAM;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes;
STARTUP: load = ROM, type = ro, start = $5900;
INIT: load = ROM, type = ro, optional = yes;
CODE: load = ROM, type = ro, align = $100;
RODATA: load = ROM, type = ro;
}
FEATURES {
CONDES: segment = STARTUP,
type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__;
CONDES: segment = STARTUP,
type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__;
}
SYMBOLS {
__STACKSIZE__: value = $0200, type = weak;
}