#23170 - ProblemBaby - Tue Jul 06, 2004 1:37 pm
Hi I want to do a water/wave effect.
For now I use a HBLANK-interrupt (that actually doesnt work ive no idea why but the code in the interrupt should work)
Its freezing after all setup code here is how I enable the interrupt
Whats wrong, ive worked with interuppts before and it have worked but now it something really strange going on.
I also wonder if HDMA is that faster than an interrupt and is it possible to use in this case?
Last edited by ProblemBaby on Tue Jul 06, 2004 2:10 pm; edited 2 times in total
For now I use a HBLANK-interrupt (that actually doesnt work ive no idea why but the code in the interrupt should work)
Its freezing after all setup code here is how I enable the interrupt
Code: |
IntrTable[1] = WaterEffect; REG_DISPSTAT |= 0x10; REG_IE |= 0x2; REG_IME = 1; void WaterEffect() { REG_BG0HOFS = 20; // this just to check if the code comes to this place REG_IF |= 0x2; } |
Whats wrong, ive worked with interuppts before and it have worked but now it something really strange going on.
I also wonder if HDMA is that faster than an interrupt and is it possible to use in this case?
Last edited by ProblemBaby on Tue Jul 06, 2004 2:10 pm; edited 2 times in total