hi dave!
i don't have the headers here at home but from what i can see i'd guess
you are setting up win0 flags _but_ you turn on win1 in the SetMode()
statement...
of course i could be all wrong, heh ... let's have a look at it tomorrow
at work ...
cheers,
Markus
On 03 Dec 2001 17:43:10 +0000, Dave Carter wrote:
> Hi all,
>
> I've read the recent messages about the window modes on the GBA from
> John Q and NetSlut, which gave me a great idea on what window modes
> can do and roughly how to use them. I've also looked through the
> section in the official docs about them, and I've got the specifics
> of what bits to set in the various registers. But somehow, I still
> can't get it to work at all!
>
> Here's my current test code (using most of devoto's header files):
>
> REG_WIN0H = 0x1400 | 0x00DC;
> REG_WIN0V = 0x1400 | 0x008C;
> REG_WININ = 0x0000;
> REG_WINOUT = 0x0000 | 0x001F;
>
> SetMode(MODE_0 | OBJ_ENABLE | OBJ_MAP_1D | WIN1_ENABLE);
>
> To the best of my knowledge, this should define a window 20 pixels in
> from the sides of the screen, and turn off everything inside that
> window, and turn on everything outside of it. What I actually get is
> everything on everywhere, which doesn't give me much to go on!
>
> One thing that did occur to me (although it's of the straw-grabbing
> variety of answers) was that maybe windows aren't available in the
> VGBA dos based emulator I'm using for testing? Bit of a long shot as
> it's been great for everything so far.
>
> Thanks for any help, or pointers to example programs!
>
> Dave