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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d0077c2a3f44fc09 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Port LPT + ADA Date: Fri, 03 Dec 2004 19:46:33 +0100 Organization: None Message-ID: <551066464.AAGDQaJrbF@linux1.krischik.com> References: <2725430.ShOyuHW7BU@linux1.krischik.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1102104648 05 31890 8735XYlJ9Knl8Be 041203 20:10:48 X-Complaints-To: usenet-abuse@t-online.de X-ID: bpZnRMZX8ePzediqhL6qx7ZNikxsEApcWDS9mSqGpjtMEO1kHOeprR User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6742 Date: 2004-12-03T19:46:33+01:00 List-Id: Slawo - MIR wrote: >> type Byte is mod 256; >> Port : Byte; >> for Port'Address use 16#379#; > Yes, but how to tie this whit function ReadFile( ) ?? You said you wanted to access a particular memory address and that is the answer to it. However, I am wondering if you don't need device driver to access a particular memory location. In fact: is the LPT port not output only and any input from it need to be done by a specialized device driver? If you have some C example we can convert it into Ada - that should not be a problem. Apart from that this might not be an Ada problem as such but a Operating System. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com