Gameboy Development Forum

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.

#1 2015-05-04 09:00:38

Glad
Member
From: France
Registered: 2015-03-04
Posts: 28
Website

[GBDK] ERROR : Bank overflow (addr 4>4)

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...


Another boring artist.

Current software project --> Walking under the rain (GB)
Current hardware project --> GlitchBoy

Offline

 

#2 2015-05-04 15:58:43

Glad
Member
From: France
Registered: 2015-03-04
Posts: 28
Website

Re: [GBDK] ERROR : Bank overflow (addr 4>4)

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...


Another boring artist.

Current software project --> Walking under the rain (GB)
Current hardware project --> GlitchBoy

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson