1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-10-05 15:58:13 +00:00

nes: switched RAM and SRAM areas for MMC3/nesbanked.cfg as per issue #186

This commit is contained in:
Steven Hugg 2024-06-30 13:01:41 -05:00
parent a01cc6453a
commit 3305df6d30

View File

@ -1,3 +1,6 @@
# https://github.com/sehugg/8bitworkshop/issues/186
# https://github.com/seanwiththebeard/8bitworkshop_MMC3_siegegame
SYMBOLS {
__STACKSIZE__: type = weak, value = $0300; # 3 pages stack
}
@ -34,13 +37,13 @@ MEMORY {
# $0100-$0200 cpu stack
# $0200-$0500 3 pages for ppu memory write buffer
# $0500-$0800 3 pages for cc65 parameter stack
SRAM: file = "", start = $0500, size = __STACKSIZE__, define = yes;
RAM: file = "", start = $0500, size = __STACKSIZE__, define = yes;
# additional 8K SRAM Bank
# - data (run)
# - bss
# - heap
RAM: file = "", start = $6000, size = $2000, define = yes;
SRAM: file = "", start = $6000, size = $2000, define = yes;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
@ -59,7 +62,9 @@ SEGMENTS {
CODE: load = PRG7, type = ro, define = yes;
VECTORS: load = VECTORS, type = ro;
CHARS: load = CHR, type = ro;
BSS: load = SRAM, type = bss, define = yes;
BSS: load = RAM, type = bss, define = yes;
XRAM: load = SRAM, run = SRAM, type = rw, define = yes, optional = yes;
}
FEATURES {
CONDES: type = constructor,