-
Notifications
You must be signed in to change notification settings - Fork 2
/
link.cfg
24 lines (22 loc) · 868 Bytes
/
link.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
MEMORY {
ZP: start = $0, size = $100, type = rw;
HEADER: start = 0, size = $0010, type = ro, file = %O, fill=yes, fillval=$00;
STACK: start = $0100, size = $0100, type = rw;
OAMRAM: start = $0200, size = $0100, type = rw;
RAM: start = $0300, size = $0500, type = rw;
ROM_c_0: start = $c000, size = $4000, type = ro, fill=yes, file = %O;
CHR: start = $0000, size = $2000, type = ro, fill=yes, file = %O;
}
SEGMENTS {
INESHDR: load = HEADER, type = ro;
ZEROPAGE: load = ZP, type = zp;
STACK: load = STACK, type = bss, define = yes, optional = yes;
OAMRAM: load = OAMRAM, type = bss, define = yes, optional = yes;
BSS: load = RAM, type = bss, define = yes;
CODE: load = ROM_c_0, type = ro;
VECTORS: load = ROM_c_0, type = ro, start = $FFFA;
CHRROM: load = CHR, type = ro;
}
FILES {
%O: format = bin;
}