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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ca147c487910c1d8 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: GNAT: WIN95 - System.Address Question... Date: 1996/09/19 Message-ID: <01bba618$0a1b2e40$068371a5@dhoossr.iquest.com>#1/1 X-Deja-AN: 183904389 distribution: world references: <3240134A.7877@ab.com> content-type: text/plain; charset=ISO-8859-1 organization: DBH Enterprises, Inc. mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-09-19T00:00:00+00:00 List-Id: Mike Gardner wrote in article <3240134A.7877@ab.com>... > Hello, > > I'm writing an interface to an EISA card which sits in a Gateway > computer running WIN95. I need to write a 0x0001 to a real-mode address > of CC00H:0804H. Since WIN95 is running in protected-mode, I assume that > I need to buy/write a package for peeking and poking values to real-mode > addresses... My question is this... Will the GNAT for WIN95 system > allow me to directly write to a real-mode address and it handles the > nasties of the protected-mode interface? My hunch is that I cannot just > simply use the System.Address stuff on this platform and must buy/write > an interface package to give me a porthole from protected-mode to > real-mode. What do you think? > > Thanks in advance! > > Mike Gardner > mike.gardner@ab.com > Hi Mike, You're right that you can't use System.Address. System.Address values are addresses in the virtual address space of your program -- i.e. 32-bit values which know nothing about segment:offset types of addresses. What you need is the Win32 DDK (Device Driver Kit). Then you can use the Interfaces.C stuff, and Pragma interface to get to the routines you need. I've wanted to do enough of that to get "hands on" experience with it, but just haven't had the time. Hope this helps -- David C. Hoos, Sr., http://www.dbhwww.com http://www.ada95.com