gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Weird results

#83104 - xproductions - Fri May 12, 2006 10:01 pm

When I compiled this:

int AgbMain()
{
REG_IME = REG_SOUNDCNT_X = 0;
REG_DISPCNT = DISPCNT_MODE(3) | DISPCNT_BG2;

while(1);
return 0;
}

I ran it on No$GBA and VBA and got the same thing: a white screen for a few secs followed by a black screen. I then modified it to plot a pixel; same result. What could possibly be wrong?

I'm using DevKitARM v18 with Jeff Frohwein's crt0 and linkscript.
_________________
If you would not be forgotten
as soon as you are dead and rotten,
either write things worth reading
or do things worth writing.

-- Benjamin Franklin