From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79de620483de9299 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-13 11:17:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!207.115.63.142!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: IO-PORTS References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 64.175.242.32 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1021313808 ST000 64.175.242.32 (Mon, 13 May 2002 14:16:48 EDT) NNTP-Posting-Date: Mon, 13 May 2002 14:16:48 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: SCSYQNONAJUMB_LY@BCBNWX@RJ_XPDLMN@GZ_GYO^ZWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM Date: Mon, 13 May 2002 18:16:49 GMT Xref: archiver1.google.com comp.lang.ada:23970 Date: 2002-05-13T18:16:49+00:00 List-Id: > 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.