-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnrom256.cfg
executable file
·33 lines (29 loc) · 1.07 KB
/
nrom256.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
#
# Linker script for Concentration Room (lite version)
# Copyright 2010 Damian Yerrick
#
# Copying and distribution of this file, with or without
# modification, are permitted in any medium without royalty
# provided the copyright notice and this notice are preserved.
# This file is offered as-is, without any warranty.
#
MEMORY {
ZP: start = $10, size = $f0, type = rw;
# use first $10 zeropage locations as locals
HEADER: start = 0, size = $0010, type = ro, file = %O, fill=yes, fillval=$00;
RAM: start = $0300, size = $0500, type = rw;
ROM7: start = $8000, size = $8000, type = ro, file = %O, fill=yes, fillval=$FF;
}
SEGMENTS {
ZEROPAGE: load=ZP, type=zp;
BSS: load=RAM, type=bss, define=yes, align=$0100;
INESHDR: load=HEADER, type=ro, align=$10;
RODATA: load=ROM7, type=ro, align=$0100, define=yes;
CODE: load=ROM7, type=ro, align=$0020, define=yes;
DMC: load=ROM7, type=ro, align=64, optional=yes;
VECTORS: load=ROM7, type=ro, start=$FFFA;
}
# I set "define = yes" on RODATA for automated ROM size meter
FILES {
%O: format = bin;
}