diff --git a/src/worker/lib/nes/nesbanked.cfg b/src/worker/lib/nes/nesbanked.cfg index 2f18ae5e..e83e225e 100644 --- a/src/worker/lib/nes/nesbanked.cfg +++ b/src/worker/lib/nes/nesbanked.cfg @@ -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,