phat code I hate when they fix a bug that I use.
Main

Projects

Downloads

Articles

Links

Forum

 

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?
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.