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.7 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b4f26c164c846938 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: VIDEO MEMORY ACCESS WITH POINTERS Date: 1999/11/30 Message-ID: <3843A999.FC8C4ABE@maths.unine.ch>#1/1 X-Deja-AN: 554799208 Content-Transfer-Encoding: 7bit References: <81p3sh$h2m$1@news.colba.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Universite de =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Reply-To: Gautier.deMontmollin@maths.unine.ch Newsgroups: comp.lang.ada Date: 1999-11-30T00:00:00+00:00 List-Id: > Simple problem: I want to able to read and write directly into the video > memory using Ada code. Ex: writting the 16bits value 0x4141 at the address > 0xb8000000. > I'm a new user of ADA, in Pascal or C, it's very simple. But with the strong > protection of Ada, I'm lost. I know the basics of pointers in ADA (called > access), but I don't know how to directly address the value 0xb800000 to a > pointer. I've tried to assign the address using Unchecked_Conversion and it > works. But when I try to read or write the content in memory, a > constraint_error exception is raisen. Take a look at SVGA02X4.ZIP http://members.xoom.com/gdemont/logiciel/svga02x4.zip page http://members.xoom.com/gdemont/gsoft.htm HTH Gautier