I am using the MMC3 mapper and compiling with NESASM3. I am using the following iNES header:
I set up my MMC3 settings with the following:
this write says that I will be using two 2 KB banks at PPU $0000-$0FFF, and four 1 KB banks at PPU $1000-$1FFF which is what I want. Also, this write sets up my next write so that I am about to bank switch the 1 KB bank at PPU $1000-$13FF with whatever bank number I select to write to $8001.
I have a single 32K .chr file I'm including for all my graphics. Also, since I have selected .inesprg 8, then I understand that banks 0 through 15 are for the CPU. I have included the file by this method:
Question: Under the settings I have, what bank numbers represent which sections of my tiles.chr? For example, how could I take the information at $4000-$43FF of my tiles.chr and bank switch that into the PPU at say, PPU $1000-$13FF?
Code:
.inesmap 4 ; mapper 4 = MMC3
.inesprg 8
.ineschr 8
.inesmir 3 ; background mirroring
.inesprg 8
.ineschr 8
.inesmir 3 ; background mirroring
I set up my MMC3 settings with the following:
Code:
LDA #%01000010
STA $8000
STA $8000
this write says that I will be using two 2 KB banks at PPU $0000-$0FFF, and four 1 KB banks at PPU $1000-$1FFF which is what I want. Also, this write sets up my next write so that I am about to bank switch the 1 KB bank at PPU $1000-$13FF with whatever bank number I select to write to $8001.
I have a single 32K .chr file I'm including for all my graphics. Also, since I have selected .inesprg 8, then I understand that banks 0 through 15 are for the CPU. I have included the file by this method:
Code:
.bank 16
.org $0000
.incbin "tiles.chr"
.org $0000
.incbin "tiles.chr"
Question: Under the settings I have, what bank numbers represent which sections of my tiles.chr? For example, how could I take the information at $4000-$43FF of my tiles.chr and bank switch that into the PPU at say, PPU $1000-$13FF?