Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
So ! I start to program sound for the gameboy. I can play a sample of 1 sec which is nice...
But now I want to play a sample of 19sec. I convert the sample in a raw 8 bit PCM file and then in c array file.
I knew that my files will be too big to fit in one bank so I split it in 8 C file of ~68ko. I use the SWITH_ROM_MBC1 fonction like that :
waitpad(J_A);
SWITCH_ROM_MBC1(1);
play_sample(music1, 8192 / 32);
SWITCH_ROM_MBC1(2);
play_sample(music2, 8192 / 32);
SWITCH_ROM_MBC1(3);
play_sample(music3, 8192 / 32);
SWITCH_ROM_MBC1(4);
play_sample(music4, 8192 / 32);
(...)
The problem is, when I compile, I've got an error message : bank overflow(addr 4>4).
If someone can help please...
Offline
Ok I'm a idiot. I change the SWITCH_ROM_MBC1 fonction to MBC5 which had more memory. I change the makefile too but now I got this :
ERROR : only 1 32kB segment with 2 bank
I don't understand...
Offline