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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,70b2e2ff07dcf078 X-Google-Attributes: gid103376,public From: "Tarjei Tj�stheim Jensen" Subject: Re: Low Level IO Date: 1998/08/07 Message-ID: <6qel83$j11@news.kvaerner.com>#1/1 X-Deja-AN: 378803784 Content-Transfer-Encoding: 7bit References: <6qclfg$dpt$2@talia.mad.ibernet.es> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Kv�rner Oil & Gas Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-07T00:00:00+00:00 List-Id: JOSE VICENTE wrote : >Does anyone know how can I read/write the parallel port using Linux and Gnat >3.10 ? >I've been trying things like this and 'Storage Error' or 'Program Error' >raises. > ...... > type Byte is mod 2**8; > for Byte'Size use 8; > Parallel_Port:Byte; > for Parallel_Port'Address use >System.Storage_Elements.To_Address(16#3BC#); > ...... > begin > ...... > Parallel_Port:=value; -- The exception raises at this point. I believe that you are trying to write into the BIOS area. To my knowledge the paralell port lives in I/O space. I/O space is different from program/data space. You should use something similar to the port() function which many C compilers have. It may very well be that this can be done using assembly language insertion. Robert Dewar can probably tell you the preferred method. It may well be that this is documentet in the GNAT documentation. Please have a go at looking it up there first. Greetings,