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,FREEMAIL_FROM, GB_FREEMAIL_DISPTO 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:06:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!newsfeed.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mail From: Qwerty Newsgroups: comp.lang.ada Subject: Re: IO-PORTS Date: Mon, 13 May 2002 20:06:56 +0200 Organization: KULeuvenNet Message-ID: <3CE000C0.4020602@yahoo.com> References: <3CDFCA77.706@yahoo.com> NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: naxos.belnet.be 1021313207 12051 134.58.127.12 (13 May 2002 18:06:47 GMT) X-Complaints-To: abuse@belnet.be NNTP-Posting-Date: Mon, 13 May 2002 18:06:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: en-us, en Cache-Post-Path: seven.kulnet.kuleuven.ac.be!unknown@10-4-4-218.kotnet.org X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.lang.ada:23968 Date: 2002-05-13T20:06:56+02:00 List-Id: 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. Alexander Stephen Leake wrote: > Qwerty writes: > > >>Hi, >> >>I have to make an ADA-program for school. The program requires to >>connect 2 computers and to let them communicate through the COM1-port. >> >>How do you read/write from/to the COM1-port. It must be programmed on >>a low level. So we have to read/write directly from/to the IOports >>with adresses 16#03F8# to 16#03FD#. >> >>How do you do that in Ada ? > > > What operating system are you using? Since you say "COM1", it's > probably either DOS or Windows. > > If DOS, I have no idea. If Windows, you can use my com ports package, > assuming it's ok for you to reuse stuff off the net: > > http://users.erols.com/leakstan/Stephe/Ada/win32_com_ports.zip > > But this does not "write directly to the IO port". You can't do that > in Windows! >