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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,ca0d61d183eeb881 X-Google-Attributes: gid103376,public From: "Joachim Schroeer" Subject: Re: Direct memory access Date: 1999/03/25 Message-ID: <7dda9v$bf3$1@fleetstreet.Austria.EU.net>#1/1 X-Deja-AN: 458907317 References: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@Austria.EU.net X-Trace: fleetstreet.Austria.EU.net 922365055 11747 193.154.148.227 (25 Mar 1999 12:30:55 GMT) Organization: AMST NNTP-Posting-Date: 25 Mar 1999 12:30:55 GMT Newsgroups: comp.lang.ada Date: 1999-03-25T12:30:55+00:00 List-Id: Gordy schrieb in Nachricht ... >I'm using GNAT v3.11 for IBM PC platforms. > >I'm trying to write some code to allow direct access to memory (for >testing memory on an embedded system). I simply want something like 'C' >pointers, so I can write/read values to a given memory address. > >I've had a look at the Machine_Code package (to write my own functions) >but there must be a better way (i.e is there a function in the System >package which will allow writes to memory given a value and a >System.Address)? > >Any help greatly appreciated. > >Gordon. > Use the address attribute, LRM 13.3 Representation Attributes, e.g.: a : record_type; for a'address use 16#0000ffff#; J. Schr�er