I have a routine. I want it called once per frame. What is the quick and dirty way to do it?
I have set up gfx-modes myself straight from the VDP, no BIOS stuff used.
This is for a demo, so no need to be system friendly by setting stuff back to the original state later etc., all I want is something that calls my routine once each VBL.
I have been reading and testing and getting more and more confused by different IM (0/1/2) and BIOS-stuff and call-vectors and 38h and fd9fh and whatnot. For example there seems to be two different VBL interrupts that one can enable in the VDP, one in register 1 and one in register 2?
I guess I'm in a bit over my head, knowing next to nothing about the MSX and only semi-experienced with the Z80 itself.
So in essence, please fill in the blanks:
di // Magic code here that makes MyRoutine called once per frame, please! ei infloop: jp infloop MyRoutine: Here I do my graphical effect ... ret

