Qbasicnews.com

Full Version: parallel port
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
why??????????


i¨m working with the parallel port.. but!!!!


i use INP(port +1) to retrive data from the port


but my latop say 127, my compaq say 120.. my girlfriend's machine says something else....

i forget something before INP



DEF SEG=0

port = peek (&H408) + 256 * peek (&H409)

x = INP (port +1)

print x



simple... i forgot something?
Parallel ports will me 0x278, 0x2E8, 0x378, 0x3E8. If the port number is not one of those, then don't assume it's a valid port.

Also, when you just read from the port, what are you expecting? The port will return status bits and data bits, decode the byte to the individual bits and then you will know what it's returning.