#39890 - gauauu - Wed Apr 13, 2005 6:24 am
So I am trying to add music to my game using Krawall, but I'm a little bit stuck on one point.
I have currently been using the swi_vblank bios call to shudown the cpu between frames, waking it back up on vblank. This all worked fine.
But when I try to do this with Krawall, it doesn't seem to work. Is this because Krawall's timer interrupt could fire while the CPU is asleep, and thus not get serviced? Or should it supposedly work, and I'm just doing something stupid?
I've done a few tests, and my interrupts seem to be set up properly (if I don't call swi_vblank, both my vblank interrupt, and Krawall's timer interrupt are working correctly)
Anyway, I know my statement of "it doesn't work" is vague.....I just wanted to see if I should quit trying to make Krawall and swi_vblank work together before I spend a lot of time diagnosing the problem.
Thanks!
I have currently been using the swi_vblank bios call to shudown the cpu between frames, waking it back up on vblank. This all worked fine.
But when I try to do this with Krawall, it doesn't seem to work. Is this because Krawall's timer interrupt could fire while the CPU is asleep, and thus not get serviced? Or should it supposedly work, and I'm just doing something stupid?
I've done a few tests, and my interrupts seem to be set up properly (if I don't call swi_vblank, both my vblank interrupt, and Krawall's timer interrupt are working correctly)
Anyway, I know my statement of "it doesn't work" is vague.....I just wanted to see if I should quit trying to make Krawall and swi_vblank work together before I spend a lot of time diagnosing the problem.
Thanks!