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