#17012 - ender7771 - Sat Feb 28, 2004 8:53 pm
Can somebody please paste the memory locatation these two registers should be at? My mode0 program will only scroll right and left, but not up and down. I think I have the wrong values for them. Thank you.
#17026 - poslundc - Sun Feb 29, 2004 5:53 am
REG_BG0HOFS and REG_BG0VOFS should both be declared as volatile unsigned short int pointers, not just volatile unsigned int pointers.
This type of error in the code is very agreeable with the symptoms you've described, so I imagine it is the cause of your problem.
(If I'm right and this is the cause of the error, see if you can figure out why it caused the error and what your code was, in fact, doing. This is a very good example and a good exercise for anyone starting out in GBA programming, as it deals with important programming issues that are neglected by many tutorials.)
For the record, BUTTONS should also be a short, but like REG_BG0HOFS will still work in spite of the error.
Dan.
#17078 - dagamer34 - Sun Feb 29, 2004 6:57 pm
Learn to use the new IO viewer in VBA. It tells you the current state of the I/O registers and allows you to change them if you want.
Amazing piece of software, huh?
_________________
Little kids and Playstation 2's don't mix. :(
#17092 - ender7771 - Sun Feb 29, 2004 11:18 pm
Thanks a lot for your help. The changes fixed my problem.