I'm creating a cfg file for CC65 with the following requirements:
NES_MAPPER: type = weak, value = 4; # mapper number MMC3
NES_PRG_BANKS: type = weak, value= 8;
NES_CHR_BANKS: type = weak, value = 0;
NES_MIRRORING: type = weak, value = 0;
I do need to use a CHR-RAM, that's why I've put without CHR RAM. Although, after several attempts and tweaks on my CFG file, I was not able to create a working NES file for the game. Some help and clues?
Bellow, It's my complete nes.cfg file. I was not able to spot where is the problem is. Btw, anyone has any links to config templates? Thanks
Code: Select all
SYMBOLS {
__STACKSIZE__: type = weak, value = $0300; # 3 pages stack
NES_MAPPER: type = weak, value = 4; # mapper number
NES_PRG_BANKS: type = weak, value= 8; # number of 16K PRG banks, change to 2 for NROM256
NES_CHR_BANKS: type = weak, value = 0; # number of 8K CHR banks
NES_MIRRORING: type = weak, value = 1; # 0 horizontal, 1 vertical, 8 four screen
}
MEMORY {
ZP: file = "", start = $0002, size = $00FE, type = rw, define = yes;
# INES Cartridge Header
HEADER: file = %O, start = $0000, size = $0010, fill = yes;
# 3 16K ROM Banks @ $8000
PRG0: start = $8000, size = $2000, file = %O ,fill = yes, define = yes;
PRG1: start = $8000, size = $2000, file = %O ,fill = yes, define = yes;
PRG2: start = $8000, size = $2000, file = %O ,fill = yes, define = yes;
# 3 16K ROM Banks @ $a000
PRG3: start = $a000, size = $2000, file = %O ,fill = yes, define = yes;
PRG4: start = $a000, size = $2000, file = %O ,fill = yes, define = yes;
PRG5: start = $a000, size = $2000, file = %O ,fill = yes, define = yes;
# fixed 16K ROM banks @ $c000
PRG6: start = $c000, size = $2000, file = %O ,fill = yes, define = yes;
# final bank has
# - startup
# - code
# - vectors
PRG7: file = %O, start = $E000, size = $1FFA, fill = yes, define = yes;
VECTORS: file = %O, start = $FFFA, size = $0006, fill = yes;
# 8 8k CHR Banks (64k)
CHR: file = %O, start = $0000, size = $10000, fill = yes;
# standard 2k SRAM (-zeropage)
# $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;
# additional 8K SRAM Bank
# - data (run)
# - bss
# - heap
RAM: file = "", start = $6000, size = $2000, define = yes;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp;
HEADER: load = HEADER, type = ro;
CODE0: load = PRG0, type = ro, define = yes, optional = yes;
CODE1: load = PRG1, type = ro, define = yes, optional = yes;
CODE2: load = PRG2, type = ro, define = yes, optional = yes;
CODE3: load = PRG3, type = ro, define = yes, optional = yes;
CODE4: load = PRG4, type = ro, define = yes, optional = yes;
CODE5: load = PRG5, type = ro, define = yes, optional = yes;
CODE6: load = PRG6, type = ro, define = yes, optional = yes;
RODATA: load = PRG6, type = ro, define = yes;
ONCE: load = PRG6, type = ro, optional = yes;
DATA: load = PRG6, run = RAM, type = rw, define = yes;
STARTUP: load = PRG6, type = ro, define = yes;
CODE: load = PRG7, type = ro, define = yes;
VECTORS: load = VECTORS, type = ro;
CHARS: load = CHR, type = ro;
BSS: load = SRAM, type = bss, define = yes;
}
FEATURES {
CONDES: type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__,
segment = ONCE;
CONDES: type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__,
segment = RODATA;
CONDES: type = interruptor,
label = __INTERRUPTOR_TABLE__,
count = __INTERRUPTOR_COUNT__,
segment = RODATA,
import = __CALLIRQ__;
}
How that would work and the rules are the following:
* the Main goal it's to run the demo on actual devices, mostly some clones that are able to run MMC3 games.
* the Second goal it's to change the 8 CHR-ROM to a single CHR-RAM that still works on the same devices.
The bounty it's split on:
1)
2)
3)
For each bounty, there is a link to a related issue on the Github repository. If any bounty became fulfilled, I will update this post with the username who achieved it.
To be eligible to participate, you must be a member of the forum so I can send you PM to finish the transaction.
That's it.
the game is afoot
----
UPDATE
Any tip that leads to the answer also counts.
----
UPDATE
Bounty is off. Thanks all for all your support.