How can I in C, write to the COM1/2 ports?
Is there a function? or something?
Can I do it with _outp(), if so, what is the address of the COM1 and COM2 ports?
Thanks.
How can I in C, write to the COM1/2 ports?
Is there a function? or something?
Can I do it with _outp(), if so, what is the address of the COM1 and COM2 ports?
Thanks.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
I'm using the Borland 5.5 C++ compiler, and the win98/2000/XP OS.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
Thanks.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
I know ms-dos used some special filenames like lpt1 as fake filenames for printers. How involved was that? Was that just a ms-dos shell thing?
Its because its treated as a file, lpt1 and the COM ports
Monday - what a way to spend a seventh of your life
www.robbayer.com has a "tutorial" on connecting to serial ports (connecting to COM1, etc... works with this).