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.

Ads

#1 2014-05-15 20:32:50

Mills
Member
Registered: 2012-12-21
Posts: 132

GBDK Rom bank limit BUG

I Learned a lot, and got the gameboy to do cool things just in C.

GBDK has lots of bugs, most of them can be solved, But i found one i could not solve.

It looks like GBDK can't compile a rom with more than 64 banks. It compiles, but data stored at banks 65,66... is not readable.

I was makig a cool demo with movies, I needed 256 banks (4 MB rom) so i think this is the end, as i'm not going to code any asm... i just can't understand it.

If there is a way to solve this bug, i'd love it!.

Thanks.

Offline

 

#2 2014-05-16 20:09:25

Mills
Member
Registered: 2012-12-21
Posts: 132

Re: GBDK Rom bank limit BUG

Solved...

GBDK is great to learn. But it has so little doc...

If someone wats to make huge roms with images, sounds, etc...

Just compile using this:

Code:

 -Wl-yt8

and change bank using

Code:

SWITCH_ROM_MBC5(Bank number)

Tested on real GBC, and 64 M usb smart cart, worked perfect, But max size is 32.000 kBit ROM (4MB) because the cart is split in two.

smile.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson