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 2021-10-04 17:08:05

From: USA
Registered: 2016-11-27
Posts: 142

Am I doing Bankswitching correctly?

So I've been working on bankswitching, trying to make a ROM larger than 32k. I've got it working. I got a 64k ROM. But there's one thing that is bugging me. In the sample provided with the GBDK, there is a function called SWITCH_RAM_MBC1. I found that in my ROM, I do not need that. I have it set up so that my main game is in one bank (savethe27.c), and the levels data is in another (bank11.c). The game works correctly and all, but I am wondering: how is the correct level data being loaded? Here is a link to what I have so far:
Is there something I'm not getting correct?

My avatar is from Nintendo Power. I miss those days, so I decided to bring them back.



#2 2021-10-05 09:54:45

Registered: 2019-11-24
Posts: 65

Re: Am I doing Bankswitching correctly?

SWITCH_RAM_MBC1 is only required when you want to use external RAM.



Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson