comp.lang.ada
 help / color / mirror / Atom feed
From: jimmaureenrogers@worldnet.att.net (Jim Rogers)
Subject: Re: Low Level Ada
Date: 19 Nov 2003 10:47:38 -0800
Date: 2003-11-19T10:47:38-08:00	[thread overview]
Message-ID: <82347202.0311191047.25f76d44@posting.google.com> (raw)
In-Reply-To: ysKub.36397$hB5.217@nwrdny02.gnilink.net

"Stephane Richard" <stephane.richard@verizon.net> wrote in message news:<ysKub.36397$hB5.217@nwrdny02.gnilink.net>...
> By the subject line I mean:
> 
> Is there a way, in Ada to move memory around so to speak.
> 
> For instance, let's say I want to create an Array that would hold characters
> with the goal to send it to the video card directly (address $B800).
> 
> Could I take an array of Characters, and "move it" to address $B800 ?  or
> something like it?

Yes. Ada allows you to specify the address of a variable.
You can simply assign the array value to a variable whose address 
is B800.

Of course, your operating system may get in your way. WIN32 does not 
allow direct writing to low level addresses by high level languages.
In that case you may need to call the appropriate OS library call
to achieve your goals.

Jim Rogers



  parent reply	other threads:[~2003-11-19 18:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19 13:43 Low Level Ada Stephane Richard
2003-11-19 18:40 ` Jeffrey Carter
2003-11-19 18:47 ` Jim Rogers [this message]
2003-11-19 18:56 ` tmoran
2003-11-20  2:32   ` Stephane Richard
2003-11-20  5:39     ` tmoran
     [not found]     ` <m2vfpfgsnt.fsf@jvdsys.demon.nl>
2003-11-20 12:20       ` Stephane Richard
2003-11-19 23:37 ` Freejack
2003-11-20 13:09 ` Marin David Condic
replies disabled

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