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 09:54:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: IO-PORTS Date: 13 May 2002 12:47:41 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3CDFCA77.706@yahoo.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1021308861 26532 128.183.220.71 (13 May 2002 16:54:21 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 13 May 2002 16:54:21 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:23966 Date: 2002-05-13T16:54:21+00:00 List-Id: 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! -- -- Stephe