comp.lang.ada
 help / color / mirror / Atom feed
From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk)
Subject: Re: Gnat For use at Question
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00	[thread overview]
Message-ID: <DuEHz8.6A@jvdsys.nextjk.stuyts.nl> (raw)
In-Reply-To: 4s2eb5$qt6@masala.cc.uh.edu


Spasmo (cosc19z5@Bayou.UH.EDU) wrote:

: Gnat305S for DOS
               ^^^
Note the DOS!

: I'm trying to create an array at an absolute memory location

Sounds reasonable, but:

: Some_Array : String(1..4000);
: for Some_Array use at 16#bbbbb#;

apart from the syntax problems already mentioned by Bob, if this address
is in conventional memory (< 1 Mb, say accessing the screen memory :-)
it it not possible to address it this way, due to the way the djgpp
protected mode system works.

The way to do this safely is to use the djgpp far pointer package or
any of the other two less safe methods outlined in the djgpp FAQ.

If you are feeling really adventures *and* know for sure that your
program will only be run with the CWSDPMI or other DMPI v1.0 provider,
it is possible to do this using the dpmi_map_conventional_memory...
functions. But, warning: the CWSDPMI dpmi_get_capabilities call is
not always as reliable as it should be!

If I guessed right but the above doesn't make sense, email me.

Regards,
Jerry.

-- 
-----------------------------------------------------------------------
--  Jerry van Dijk       --   e-mail: jerry@jvdsys.nextjk.stuyts.nl  --
--  Banking Consultant   --              Member Team-Ada             -- 
--  Ordina Finance BV    --    Located at Haarlem, The Netherlands   --




  parent reply	other threads:[~1996-07-11  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-11  0:00 Gnat For use at Question Spasmo
1996-07-11  0:00 ` Jon S Anthony
1996-07-11  0:00   ` Robert A Duff
1996-07-12  0:00   ` Laurent Guerby
1996-07-13  0:00     ` Jerry van Dijk
1996-07-15  0:00     ` Spasmo
1996-07-12  0:00   ` Jon S Anthony
1996-07-12  0:00   ` Spasmo
1996-07-12  0:00   ` Robert Dewar
1996-07-15  0:00   ` Jon S Anthony
1996-07-15  0:00     ` Jerry van Dijk
1996-07-15  0:00     ` Spasmo
1996-07-15  0:00     ` Robert Dewar
1996-07-15  0:00   ` Jon S Anthony
1996-07-11  0:00 ` Robert Dewar
1996-07-19  0:00   ` Spasmo
1996-07-11  0:00 ` Jerry van Dijk [this message]
1996-07-11  0:00 ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox