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.

DS Misc > Why do the screens go white/black if an .nds cant be loaded?

#129192 - felix123 - Sun May 20, 2007 10:12 am

A slightly ridiculous question...
Why do the screens go black or white if a .nds file can't be loaded? Why not any other color/pattern?

[subject changed by MOD for clarity]
_________________
Nintendo DS homebrew on Wikipedia

#129193 - Lick - Sun May 20, 2007 10:39 am

All zeros is black, all ones [bits] is white.

a lot of black: 0x000000000000000000000000000
a lot of white: 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
_________________
http://licklick.wordpress.com

#129207 - Darkflame - Sun May 20, 2007 6:06 pm

Question still kinda stands why it would be all zero's or all one's, however.

Also, does it go black anyway? Isnt it just the light turns off in some cases?
_________________
Darkflames Reviews --
Make your own at;
Rateoholic:Reviews for anything, by anyone.

#129217 - tepples - Sun May 20, 2007 6:46 pm

When a GBA or DS program uses "forced blank", the screen goes white.

I'm not sure about the DS, but at least on the GBA, the BIOS clears memory to zeroes, which in the case of the palette means black. When a program turns on the 2D engine but doesn't load the palette, all palette entries are black, and thus the screen is black. When a program turns on the 2D engine but doesn't load any backgrounds, entry 0 of the palette shows through, and this is initially black.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.