Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Window mode problems.   Message List  
Reply | Forward Message #8680 of 15019 |
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





Mon Dec 3, 2001 5:43 pm

davondserious
Offline Offline
Send Email Send Email

Forward
Message #8680 of 15019 |
Expand Messages Author Sort by Date

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...
Dave Carter
davondserious
Offline Send Email
Dec 3, 2001
6:10 pm

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() ...
Markus
markus@...
Send Email
Dec 3, 2001
8:52 pm

... If you haven't already realized it before reading this message (or didn't copy/paste your code and made a typo), you're setting the coords for WIN0 and...
DekuTree64@...
dekutree65
Offline Send Email
Dec 3, 2001
8:52 pm

Sorry, I should probably have put those defines in the first message, they are just numbered 1 and 2 instead of 0 and 1: #define WIN1_ENABLE 0x2000 #define...
David Carter
davondserious
Offline Send Email
Dec 4, 2001
10:20 am

the only thing I can suggest is that your defines for the window registers are wrong then..? they should be: 0x40 - window 0 x (top 8 bytes are the start x,...
ninge
n1nge
Offline Send Email
Dec 4, 2001
10:37 am

Thanks for the clarification, I'm pretty sure that's the same info I've got! At the moment it's looking like it might actually be the emulator after all. Just...
David Carter
davondserious
Offline Send Email
Dec 4, 2001
11:08 am

... OK, your code says Win0 from (20,20)-(220,140), nothing displayed inside it, everything displayed outside it, BG mode 0, OBJ turned on, 1D, Win0 on ...
NetSlut
netslut2
Offline Send Email
Dec 4, 2001
11:08 am

Yup, that was just some very extreme test code to try and get *something* to happen with windows! The way I'm actually going to use them is quite different....
David Carter
davondserious
Offline Send Email
Dec 4, 2001
12:03 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help