#82504 - E-Coder - Sat May 06, 2006 11:31 pm
Hi,
I'm new on this forum, i'm fluence in Dutch so i'll make a lot of spelling mistakes. I'm sorry for that.
I'm reading a tutorial about GBA programming (GbaJunkies tutorial). Here's a quote:
But when I look up in gba.h i'll find this:
This is a 32bit register? Right? Or do we only use the lower-part of the register? Or is GbaJunkie using an old header.
I'm a little bit confused.
E-Coder.
_________________
Newbie in GbaDev.
I'm new on this forum, i'm fluence in Dutch so i'll make a lot of spelling mistakes. I'm sorry for that.
I'm reading a tutorial about GBA programming (GbaJunkies tutorial). Here's a quote:
Quote: |
REG_DISPCNT REG_DISPCNT is probably the most important register in GBA programming because it allows you to do the following: - Set the screen mode - Enable backgrounds - Set the layout of sprites in memory - Gives you control over video hardware It is a 16-bit register which is split up to control different areas as outlined above. Below is a description of what each bit or set of bits does within the register. |
But when I look up in gba.h i'll find this:
Code: |
#define REG_DISPCNT *(u32*)0x4000000 //Display Control (Mode) |
This is a 32bit register? Right? Or do we only use the lower-part of the register? Or is GbaJunkie using an old header.
I'm a little bit confused.
E-Coder.
_________________
Newbie in GbaDev.