-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnsf.cfg
More file actions
36 lines (29 loc) · 1.31 KB
/
Copy pathnsf.cfg
File metadata and controls
36 lines (29 loc) · 1.31 KB
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
# https://github.com/bbbradsmith/zensf
SYMBOLS
{
BANK_STUB: type = import, addrsize = abs;
ZP_LOW: type = import, addrsize = abs;
ZP_HIGH: type = import, addrsize = abs;
RAM_LOW: type = import, addrsize = abs;
NSFS_SIZE: type = weak, addrsize = abs, value = BANK_STUB * $1000;
}
MEMORY
{
RAM_ZP: start = ZP_LOW, size = ZP_HIGH - ZP_LOW, type = rw, file = "";
RAM_STACK: start = $0100, size = $80, type = rw, file = "";
RAM_MAIN: start = RAM_LOW, size = $800 - RAM_LOW, type = rw, file = "";
NSF_HEADER: start = $0000, size = $80, type = ro, file = %O, fill = yes, fillval = 0;
ROM_NSFS: start = $0000, size = NSFS_SIZE, type = ro, file = %O, fill = yes, fillval = 0;
ROM_STUB: start = $8000, size = $1000, type = ro, file = %O, fill = no;
}
SEGMENTS
{
HEADER: load = NSF_HEADER, type = ro;
BASE_ZP: load = RAM_ZP, type = zp, define = yes, optional = yes;
STACK: load = RAM_STACK, type = bss, define = yes, optional = yes;
RAMP_CODE: load = ROM_STUB, type = ro, define = yes, run = RAM_MAIN;
RAMP_RAM: load = RAM_MAIN, type = rw, define = yes;
BASE_RAM: load = RAM_MAIN, type = bss, define = yes, optional = yes;
NSFS: load = ROM_NSFS, type = ro, define = yes;
STUB: load = ROM_STUB, type = ro, define = yes;
}