#8286 - Dwedit - Mon Jul 07, 2003 3:03 am
How do you halt the processor until a vblank?
I know there is a bios call to do it, how do you do bios calls?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
#8783 - Dwedit - Sat Jul 19, 2003 8:51 pm
I looked at the pern project's tutorial, it explains how to handle them, but not how to wait for them. I also looked through some of the sample code on the site, all of the wait vblank functions used a while loop and counted scanlines. I know that that can't be good for battery life, so I need a routine that halts the processor until the vblank interrupt occurrs.
I don't know the correct way to call bios functions, and whenever I try to call the bios functions to wait for an interrupt, the program restarts. I am using Devkitadvance with the ISR from crt0.S, using the Interrupt Table option.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."