[comp.sys.ibm.pc.programmer] Polling joystick port, low-level parallel I/O

rspangle@jarthur.Claremont.EDU (Randy Spangler) (06/17/90)

On the current thread about sampling and sample playback, how fast can you
reliably poll the joystick ports and parallel port?  The joystick ports 
would seem to be ideal for sampling, since the two 8-bit analog inputs
would either give 8-bit stereo or 16-bit mono if you could figure out how
to split a signal into an upper and lower magnitude.  8-bit mono at 16KHz
would be plenty good, though.  

I can handle wiring circuitry to clip input (so I don't burn out my game 
port) but I have no idea what the fastest way to poll the game port is.  
I'm sure it's machine dependent - I have a 16MHz 386 (for now :-).

Also, is there a fast way to output data to the parallel port, which won't
be caught by the MODE program (which redirects my printer output to COM1)?

Explanations, references, and/or source code would all be helpful.

-- 
 --------------------------------------------------------------------------
|    Randy Spangler                    |    The less things change, the    |
|    rspangle@jarthur.claremont.edu    |    more they remain the same      |
 --------------------------------------------------------------------------