From: tmoran@acm.org
Subject: Re: IO-PORTS
Date: Mon, 13 May 2002 18:16:49 GMT
Date: 2002-05-13T18:16:49+00:00 [thread overview]
Message-ID: <kqTD8.1769$tA5.93990179@newssvr21.news.prodigy.com> (raw)
In-Reply-To: u4rhcouz6.fsf@gsfc.nasa.gov
> What operating system are you using? Since you say "COM1", it's
> probably either DOS or Windows.
>...
> But this does not "write directly to the IO port". You can't do that
> in Windows!
If you really want to write directly you'll need to use the CPU's IO
instructions. Look at your compiler's docs for their library routines
for that. If your compiler lacks such a library, you'll have to use
Machine Code Insertions. IIRC you can access the COM ports directly in
Windows 95 - from the "DOS box" at the least. Windows may emulate the
IO instructions so speed might be a problem. To get *useful* access
under Windows you need to write a Windows Device Driver.
prev parent reply other threads:[~2002-05-13 18:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-13 14:15 IO-PORTS Qwerty
2002-05-13 14:21 ` IO-PORTS Preben Randhol
2002-05-13 14:31 ` IO-PORTS Qwerty
2002-05-13 16:47 ` IO-PORTS Stephen Leake
2002-05-13 18:06 ` IO-PORTS Qwerty
2002-05-13 18:37 ` IO-PORTS Sergey Koshcheyev
2002-05-13 19:18 ` IO-PORTS Michal Nowak
2002-05-13 19:27 ` IO-PORTS Jeffrey Carter
2002-05-13 18:14 ` IO-PORTS Darren New
2002-05-13 18:16 ` tmoran [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox