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-06-10 15:19:07

shiblivs
New member
Registered: 2021-06-10
Posts: 7

Gameboy Memory Filling up for some reason

Hey! I wrote a quick program in hex. In my emulator, I check all the ram and its filled with random numbers which I never placed there.

Do I have to clear this manually? Ive checked all my head info and it works just fine.

Offline

 

#2 2021-06-10 18:09:53

Tauwasser
Member
Registered: 2010-10-23
Posts: 160

Re: Gameboy Memory Filling up for some reason

Hey, shiblivs, welcome to Gameboy development smile

Yes, at startup not all RAM is cleared, so any RAM you use you will have to clear/initialize first.
If you initialize every variable before using it and your program works, that's great big_smile

Offline

 

#3 2021-06-11 12:51:50

shiblivs
New member
Registered: 2021-06-10
Posts: 7

Re: Gameboy Memory Filling up for some reason

Thank you smile Much Appreciated!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson