I've been following Bunnyboy's Nerdy Nights series for a couple of weeks now. Assembler used is NESASM3.
I was moving onto the sound-section of the series, lead by Metal Slime.
Now, in this tutorial, Metal Slime has added another 16KB of PRG code memory, adding up to a total of 32KB (max. without using mappers). So far so good.
However, when I add another 16KB of memory for the code to be stored in,
Code: Select all
.inesprg 2 ; 2x 16KB PRG code
I've tried debugging it myself, and had this line of logic in my head:
And thus I've changed this line,Obviously, now that there's twice as much PRG code memory, the banks have shifted, too.
0-1 used to be for PRG code, bank 2 for graphics. Double the PRG banks, and we've got 0-3 for PRG code, and bank 4 for graphics.
Code: Select all
.bank 2 ;<---- this one
.org $0000
.incbin "mario.chr" ;includes 8KB graphics file from SMB1
.bank 4 ;<---- to this one
.org $0000
.incbin "mario.chr" ;includes 8KB graphics file from SMB1
The same thing happens when applied to this example file.
I feel I might have mixed up a couple of things there.
TL;DR: Can someone help me figure out where my logic went wrong?