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 2022-03-12 06:19:57

Koop the Koopa
New member
Registered: 2020-10-31
Posts: 6
Website

Problem with banking

Hi. I am making a parody of a game.
I am using the latest version of GBDK-2020.

When I compile the rom, its all fine. But when I add code to a different bank (which was bank 8), this shows up:

Code:

WARNING: Multiple write of    13 bytes at 0x8147 -> 0x8153 (8147 -> 8153, 8000 -> b7be)
Warning: Write from one bank spans into the next. 7ff7 -> 8016 (bank 1 -> 2)
WARNING: Multiple write of   326 bytes at 0x8000 -> 0x8145 (8000 -> b7be, 7fb7 -> 8145)
WARNING: Multiple write of     1 bytes at 0x8146 -> 0x8146 (8000 -> b7be, 8146 -> 8146)

And the ROM hangs.

Before I added stuff to a different bank, it never showed that message and the ROM booted fine... So I have no idea what is going on.

I went through the ROM with a hex editor to see if it overflowed and it looked fine...

Am I doing something wrong?

(The ROM has 16 banks btw)

Last edited by Koop the Koopa (2022-03-12 08:38:52)

Offline

 

#2 2022-03-12 08:47:05

Ardis
Member
From: USA
Registered: 2019-06-06
Posts: 58
Website

Re: Problem with banking

That error usually means you're trying to pack more than 16KB into a single bank. Try moving stuff around.

I keep each bank as a separate .c file so I can more easily see what's going where.

Last edited by Ardis (2022-03-12 08:48:12)


Also known as Arvex in other places.

Interceptor (Demo)
https://arvex.itch.io/interceptor

Offline

 

#3 2022-03-12 09:14:07

Koop the Koopa
New member
Registered: 2020-10-31
Posts: 6
Website

Re: Problem with banking

I fixed the error now. Bank 0, 1 and 2 were overflowing ._.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson