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 > Register Question

#6554 - hahcoe - Wed May 28, 2003 9:04 pm

I have a question about the various registers used when programming for the GBA. How are the registers initialized, or are they even initialized at all? In other words, before I even start modifying the bits to REG_DISPSTAT are all of the bits initialized to 0?

Thanks.

#6556 - tepples - Wed May 28, 2003 10:58 pm

hahcoe wrote:
How are the registers initialized

The registers are initialized by RegisterRamReset() in BIOS, but not all of them are initialized to 0. And for most registers, you don't even need to read-modify-write; you can just write a new, fully composed value.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.