-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrom.cfg
29 lines (25 loc) · 944 Bytes
/
rom.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
MEMORY {
ZP: file = %O, start = $0000, size = $0100, type = rw, define = yes;
# $100 for stack
RAM: file = "", start = $0200, size = $0600, type = rw, define = yes;
# INES Cartridge Header
HEADER: file = %O, start = $0000, size = $0010, fill = yes;
# 2 16K ROM Banks
# - startup
# - code
# - rodata
# - data (load)
ROM0: file = %O, start = $8000, size = $7FFA, fill = yes, define = yes;
# Hardware Vectors at End of 2nd 8K ROM
ROMV: file = %O, start = $FFFA, size = $0006, fill = yes;
# 1 8k CHR Bank
ROM2: file = %O, start = $0000, size = $2000, fill = yes;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
HEADER: load = HEADER, type = ro;
CODE: load = ROM0, type = ro;
VECTORS: load = ROMV, type = rw;
CHARS: load = ROM2, type = rw;
RAM: load = RAM, type = rw;
}