-
Notifications
You must be signed in to change notification settings - Fork 0
/
nrom_128_horz.cfg
60 lines (47 loc) · 2.02 KB
/
nrom_128_horz.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
54
55
56
57
58
59
60
MEMORY {
ZP: start = $0000, size = $0100, type = rw, define = yes;
HEADER: start = $0000, size = $0010, file = %O ,fill = yes;
PRG: start = $c000, size = $3fc0, file = %O ,fill = yes, define = yes;
DMC: start = $ffc0, size = $003a, file = %O, fill = yes, define = yes;
VECTORS: start = $fffa, size = $0006, file = %O, fill = yes;
CHR: start = $0000, size = $2000, file = %O, fill = yes;
RAM: start = $0300, size = $0500, define = yes;
# Use this definition instead if you going to use extra 8K RAM
# RAM: start = $6000, size = $2000, define = yes;
}
SEGMENTS {
HEADER: load = HEADER, type = ro;
STARTUP: load = PRG, type = ro, define = yes;
LOWCODE: load = PRG, type = ro, optional = yes;
INIT: load = PRG, type = ro, define = yes, optional = yes;
CODE: load = PRG, type = ro, define = yes;
RODATA: load = PRG, type = ro, define = yes;
DATA: load = PRG, run = RAM, type = rw, define = yes;
VECTORS: load = VECTORS, type = ro;
SAMPLES: load = DMC, type = ro;
CHARS: load = CHR, type = ro;
BSS: load = RAM, type = bss, define = yes;
HEAP: load = RAM, type = bss, optional = yes;
ZEROPAGE: load = ZP, type = zp;
}
FEATURES {
CONDES: segment = INIT,
type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__;
CONDES: segment = RODATA,
type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__;
CONDES: type = interruptor,
segment = RODATA,
label = __INTERRUPTOR_TABLE__,
count = __INTERRUPTOR_COUNT__;
}
SYMBOLS {
__STACKSIZE__ = $0500; # 5 pages stack
NES_MAPPER = 0; # mapper number
NES_PRG_BANKS = 1; # number of 16K PRG banks, change to 2 for NROM256
NES_CHR_BANKS = 1; # number of 8K CHR banks
NES_MIRRORING = 0; # 0 horizontal, 1 vertical, 8 four screen
}