-
Notifications
You must be signed in to change notification settings - Fork 0
/
nes.cfg
21 lines (21 loc) · 927 Bytes
/
nes.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SYMBOLS {
__STACKSIZE__: type = weak, value = $0300; # 3 pages stack
}
MEMORY {
ZP: file = "", start = $0000, size = $00FF, type = rw, define = yes;
HEADER: file = %O, start = $0000, size = $0010, fill = yes;
PRG: file = %O, start = $8000, size = $8000, fill = yes, define = yes;
CHR: file = %O, start = $0000, size = $2000, fill = yes, define = yes;
SPRITE_RAM: file = "", start = $0200, size = $0100, define = yes;
RAM: file = "", start = $0300, size = $0500, define = yes;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
HEADER: load = HEADER, type = ro;
CODE: load = PRG, type = ro, define = yes;
RODATA: load = PRG, type = ro, define = yes;
VECTORS: load = PRG, type = rw, start = $fffa;
OAM: load = SPRITE_RAM type = rw;
CHR: load = CHR type = ro;
BSS: load = RAM, type = bss, define = yes;
}