|
|
View Message | Back to Messages |
Plasma Fri Sep 1 2006 at 7:54 pm I think
It is only possible to determine the current scan line from the hardware, not the individual current pixel. Bit 3 will be set during vertical retrace, and bit 0 will be set during horizontal retrace.
So if you keep track of bit 0, you will know when the next scan line has started. By checking bit 3, you can tell if you have reached the top/bottom of the screen.
However, if you do some linear interpolation, you could estimate the current pixel being drawn. You would need some very tight timing though. (Probably DOS only)
Let me guess, light gun?
|
|