August 5th, 2002, 03:00 AM
I was thinking of creating a program in C that can determine port addresses, which will be used in inport() and outport() functions. I need to have the port address of input and output of the printer port. My problem is, I don't have any idea or any reference in doing so. Any help will do.
I'll be using the program to simulate Bitwise Operations with the use of LEDs (Light Emmiting Diodes) [outport()]. And evaluate incoming signals from the printer port [inport()].
August 5th, 2002, 03:44 AM
August 9th, 2002, 02:46 AM
Thnx for the Info. It's just what I need.
One thing I may ask?... What book or other URL would you sugges me when it comes to Serial and Parallel Programming in C/C++?
August 9th, 2002, 04:31 PM
That is a very good question. Personally, I haven't done any port programming in years, but when I did it, I learned by trial and error really. All I had was a good book that had all the documented (and undocumented) BIOS calls for an IBM PC architecture. The book also had a very good set of diagrams for serial and parallel port. This book was written way back in 1989 or so and I don't remember the name now, but there are several similar books (and now free documents on the web) available now, that contain the information. Maybe you should try google to see if you can find the information. If not, I'll dig into my pile of books and see if I can still find it. :)