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,546b2e2a44f83809 X-Google-Attributes: gid103376,public From: cosc19z5@Bayou.UH.EDU (Spasmo) Subject: Re: Gnat For use at Question Date: 1996/07/15 Message-ID: <4sdprq$p67@masala.cc.uh.edu>#1/1 X-Deja-AN: 168869946 references: <4s2eb5$qt6@masala.cc.uh.edu> organization: University of Houston newsgroups: comp.lang.ada Date: 1996-07-15T00:00:00+00:00 List-Id: Laurent Guerby (guerby@gnat.com) wrote: : [...] : Spasmo> That's exactly what I got. The thing is I don't have the RM so : Spasmo> I was unable to look up the specifics. : Where did you get GNAT from? I guess that most Ada CD have an : hypertext version of the RM lying somewhere (and may be even of the : Rationale, Ada Quality & Style, Ada in Action, FAQs, Lovelace and : other tutorials). If not, I hope the next releases will pick all this : free high quality material. Of course if you have web access, just : have a look at: : http://lglwww.epfl.ch/Ada Yep got it--several kind people pointed out that site to me and I leeched quite a bit. Lovelace, AdaTutr, and a hypertext version of the RM. [Snip -- informative info on Ada95 syntax for such things] Yep all my books are Ada83 ones. I'm definitely going to look for some Ada95 books. : [...] : Spasmo> Hmmmm ok, well here's a question about To_Address. Since PC's : Spasmo> use segment, base addressing, is there an overload of : Spasmo> To_Address that accepts both a segment and base, or is it up : Spasmo> to us to "massage" the number into the proper format for : Spasmo> To_Address? Are there any functions that do this "massaging" : Spasmo> for us? Thanks for the help. : This is a question for a DJGPP master I guess. If you manage to : make it work with GCC/C, it should work the same way with GCC/Ada. Hmmmm, well I managed to get it to work with Turbo C, but then I had the MK_FP macro--but I think it all boiled down to shifting the address. I wasn't sure if that would cut it since my program seemed to have some tie-ins to a memory manager so I wasn't sure if some kind of mapping would occur that would obliterate any hopes of manually doing something like that. I know I finally got the code to compile (thanks all), but running it resulted in a Segmentation Fault. Just like being on UNIX :) : -- : Laurent Guerby , Team Ada. : "Use the Source, Luke. The Source will be with you, always (GPL)." -- Spasmo "Here's a present just for you When you open it, you'll be through" "Letter Bomb" by the Circle Jerks