Skip to content

Commit 9851584

Browse files
authored
Add files via upload
1 parent ac8fd63 commit 9851584

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

src/cfg/pet.cfg

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
1+
SYMBOLS {
2+
__LOADADDR__: type = import;
3+
__EXEHDR__: type = import;
4+
__STACKSIZE__: type = weak, value = $0032; # SL 100 byte stack
5+
}
6+
MEMORY {
7+
ZP: file = "", define = yes, start = $0055, size = $001A;
8+
LOADADDR: file = %O, start = $03FF, size = $0002;
9+
HEADER: file = %O, start = $0401, size = $000C;
10+
RAM: file = %O, start = $040D, size = $7BF3 - __STACKSIZE__;
11+
}
12+
SEGMENTS {
13+
ZEROPAGE: load = ZP, type = zp;
14+
LOADADDR: load = LOADADDR, type = ro;
15+
EXEHDR: load = HEADER, type = ro;
16+
STARTUP: load = RAM, type = ro;
17+
LOWCODE: load = RAM, type = ro, optional = yes;
18+
ONCE: load = RAM, type = ro, optional = yes;
19+
CODE: load = RAM, type = ro;
20+
RODATA: load = RAM, type = ro;
21+
DATA: load = RAM, type = rw;
22+
INIT: load = RAM, type = bss;
23+
BSS: load = RAM, type = bss, define = yes;
24+
}
25+
FEATURES {
26+
CONDES: type = constructor,
27+
label = __CONSTRUCTOR_TABLE__,
28+
count = __CONSTRUCTOR_COUNT__,
29+
segment = ONCE;
30+
CONDES: type = destructor,
31+
label = __DESTRUCTOR_TABLE__,
32+
count = __DESTRUCTOR_COUNT__,
33+
segment = RODATA;
34+
}

0 commit comments

Comments
 (0)