Hey, everyone
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,
Then the code simply breaks entirely.
I've tried debugging it myself, and had this line of logic in my head:
And thus I've changed this line,
But it doesn't work, regardless. Could it be that the addresses shift by adding the 16 KB?
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?
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:
.inesprg 2 ; 2x 16KB PRG code
Then the code simply breaks entirely.
I've tried debugging it myself, and had this line of logic in my head:
Quote:
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.
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.
And thus I've changed this line,
Code:
.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
.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
But it doesn't work, regardless. Could it be that the addresses shift by adding the 16 KB?
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?