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 2017-07-02 15:50:55

DoYouEvenFish
Member
Registered: 2017-03-11
Posts: 18

Gbdk address overflow

Whenever I compile my c file, the compiler gives the error "ERROR: address overflow (addr 802 >= 8000)". What's even more confusing about this is that when I comment out a certain amount of the code, it compiles fine. Can someone explain to me what causes this error?
Here is a link to the source code if anyone wants to take a look:
https://drive.google.com/open?id=0B1t7B … C04WktybzQ

Offline

 

#2 2017-07-03 05:02:50

Plasma
New member
Registered: 2017-04-16
Posts: 5

Re: Gbdk address overflow

Your arrays need some modification, in every array file, changing every instance of "unsigned char" to "const unsigned char" should work.

Offline

 

#3 2017-07-03 07:15:52

DoYouEvenFish
Member
Registered: 2017-03-11
Posts: 18

Re: Gbdk address overflow

That has fixed it, thank you.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson