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 12:27:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!paloalto-snh1.gtei.net!lsanca1-snf1!news.gtei.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3CE013A1.3E896C4@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: IO-PORTS References: <3CDFCA77.706@yahoo.com> <3CE000C0.4020602@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 13 May 2002 19:27:36 GMT NNTP-Posting-Host: 63.184.19.60 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1021318056 63.184.19.60 (Mon, 13 May 2002 12:27:36 PDT) NNTP-Posting-Date: Mon, 13 May 2002 12:27:36 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:23976 Date: 2002-05-13T19:27:36+00:00 List-Id: Qwerty wrote: > > I'm using DOS & Linux (it is not possible in windows to do that > directly, as you 've said). It's not ok to use a package, I really have > to do it myself. But thanks anyway for the help. In DOS, you have a couple of options 1. Use a package supplied by the compiler vendor to access the IO ports. 2. Write a machine code insertion to access the IO ports You may also be able to open a file named "COM1:", but may have trouble reading and writing from the same port. -- Jeff Carter "Now go away or I shall taunt you a second time." Monty Python & the Holy Grail