From: Dave Poirier <instinc@users.sf.net>
Subject: Re: Device driver in Ada95
Date: Mon, 25 Feb 2002 19:02:04 -0500
Date: 2002-02-25T19:02:04-05:00 [thread overview]
Message-ID: <3C7AD07C.7090201@users.sf.net> (raw)
In-Reply-To: mailman.1014673682.3346.comp.lang.ada@ada.eu.org
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! :)
next prev parent reply other threads:[~2002-02-26 0:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-25 21:20 Device driver in Ada95 Dave Poirier
2002-02-25 21:47 ` sk
2002-02-26 0:02 ` Dave Poirier [this message]
2002-02-25 21:53 ` chris.danx
2002-02-25 22:06 ` Jerry van Dijk
2002-02-25 22:54 ` Dave Poirier
2002-02-25 23:21 ` sk
2002-02-26 10:05 ` chris.danx
-- strict thread matches above, loose matches on Subject: below --
2002-02-26 11:09 Gautier Write-only-address
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox