>by freqmax on 2009/5/12 9:02:42
>There's an alternative to filter direct I/O calls inside software. Scan the memory location residing at the same location as the I/O port and update any hardware with it.
But then you have to determine the maximum frequency, freqmax, for updating those i/o ports. For example, joystick ports and paddles can be read at any time; others may not require an update that frequently, for which your algorithm is good.
I was thinking scanning the graphics memory area to fix up the image. I.e., map the graphics memory to the same area as STs so ST writes full throttle to the graphics memory and then update/fix the image during VBI before making it visible.