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

chris
Member
From: USA
Registered: 2016-11-27
Posts: 142
Website

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:
http://www.atari2600land.com/gameboy/savethepup27.zip
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.

Offline

 

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

0x7f
Member
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.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson