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 X-Google-Thread: 103376,1ce933c717a09bf,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-15 10:04:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!192.71.180.34!newsfeed1.swip.net!swipnet!nntpserver.swip.net!not-for-mail From: Bj�rn Lundin Newsgroups: comp.lang.ada Subject: Writing to I/O ports in Linux Message-ID: <20020315190427.6d02445b.bjorn.lundin@swipnet.se> X-Newsreader: Sylpheed version 0.7.2 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 212.151.29.152 X-Complaints-To: news-abuse@swip.net X-Trace: nntpserver.swip.net 1016215443 212.151.29.152 (Fri, 15 Mar 2002 19:04:03 MET DST) NNTP-Posting-Date: Fri, 15 Mar 2002 19:04:03 MET DST Organization: A Customer of Tele2 X-Sender: x-367446@d212-151-29-152.swipnet.se Date: Fri, 15 Mar 2002 19:04:27 +0100 Xref: archiver1.google.com comp.lang.ada:21303 Date: 2002-03-15T19:04:27+01:00 List-Id: Hi! I've written a package that gets input from the gameport of a PC running Linux. To get information from the port I use the 'inb' function i C. But I don't like to interface with C. Is there an alternative in Ada to read from ports? I looked in the RM and Annex C 1.11.5 (Implementaion advice) states Examples of such instructions include: . . . Direct operations on I/O ports. I wonder if this is implemented in Gnat 3.13p? regards, /Bj�rn