The idea is not using the interrupt but by polling the status register running the program.
I tried this:
WaitForVDP_Vblank.restart:
ld a, #1<<5 ;//
out ( 0x91 ), a
WaitForVDP_Vblank1:
call 0x13e
bit #7,a
jp z, WaitForVDP_Vblank1
ld a, #0
out ( 0x91 ), a
WaitForVDP_Vblank2:
call 0x13e
bit #7,a
jp z, WaitForVDP_Vblank2
jp WaitForVDP_Vblank.restart
With an Saleae Logic 16 connected to the printer port on a VG8020/00. It show this screen:
It isnt 50hz on the output all the time.
Anyone ever used this VDP status register Frame Flag? I googled my best but couldn't find any topics on using this.
openMSX i tried testing it with another code changing the background color, but it seems stable.
I tried the same code setup on a NMS8220, even more unstable.