GP32 mr spiv's vblank via irq code


skratchy

Still Fresh
Hello,

I am trying to get a timer going which will give me the current frame, so I can implement some auto frameskip code on the emulator I am porting. I have tried compiling mr spiv's vblank.c but it runs for a few frames and then it crashes with an alignment exception (I think). Has anybody else managed to get this working? I am using Minigp32 and have mr spivs multifirmware (which is great by the way). It appears to work (ie I see the vertical color bars for the interrupt) but then crashes after about 20 frames.

Thanks

Sam
 
I tried to compile vblank.c (with visual minigw) and it worked. No crashes or anything. However I'm a noob devr so i don't have a clue what one can exactly do with it.

You've probably modified mr.spivs code to much or have a crappy makefile.
 
I would say it's a gcc inherent problem. What I know of some versions of 3.x gcc produce invalid code for functions with __attribute__ ((interrupt ("IRQ"))). Try defining the __GCC2x__ and check what happens.
 
Back