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,ef5a6044185c922d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-25 16:04:12 PST Message-ID: <3C7AD07C.7090201@users.sf.net> From: Dave Poirier User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Device driver in Ada95 References: <3C7AAA8B.6020507@users.sf.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 25 Feb 2002 19:02:04 -0500 NNTP-Posting-Host: 65.94.39.101 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1014681724 65.94.39.101 (Mon, 25 Feb 2002 19:02:04 EST) NNTP-Posting-Date: Mon, 25 Feb 2002 19:02:04 EST Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:20411 Date: 2002-02-25T19:02:04-05:00 List-Id: sk wrote: > Hi, > > You might explore the "Address" clause. > > declare > > type Screen_Type ... > > Screen : Screen_Type; > > for Screen'Address use 16#b8000#; > > begin > Screen (Screen'First) := ... > > ... > > end; > > -- > -- This is a QUAD so you will need to explore the > -- details for yourself and also be aware of the > -- potential pitfalls. > Just for the sake of anyone browsing the archives, to use Something'Address like that one needs to do: for Screen'Address use To_Address(16#B8000#); the To_Address function is in the System.Storage_Elements package. Got my screen driver working! Woohoo! :)