Eero Tamminen wrote:See CycInt_AddRelativeInterruptWithOffset() in cycInt.c.
Thanks, but I'm having some difficulty figuring out how to use that. It needs a "handler" passed to it, but none of the defined values in cycint.h are suitable. It has an ACIA_IKBD interrupt, but not a busy pin interrupt.
Is there a function somewhere in Hatari which gets called every scanline? Or a loop which goes through emulating each scanline? I could hook into that and dispatch interrupts after n scanlines. I just need to know where to look. I imagine it must be the same place where the INTERRUPT_VIDEO_HBL gets dispatched.