comp.lang.ada
 help / color / mirror / Atom feed
* VIDEO MEMORY ACCESS WITH POINTERS
@ 1999-11-27  0:00 ???
  1999-11-27  0:00 ` DuckE
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: ??? @ 1999-11-27  0:00 UTC (permalink / raw)


Simple problem: I want to able to read and write directly into the video
memory using Ada code. Ex: writting the 16bits value 0x4141 at the address
0xb8000000.

I'm a new user of ADA, in Pascal or C, it's very simple. But with the strong
protection of Ada, I'm lost. I know the basics of pointers in ADA (called
access), but I don't know how to directly address the value 0xb800000 to a
pointer. I've tried to assign the address using Unchecked_Conversion and it
works. But when I try to read or write the content in memory, a
constraint_error exception is raisen.

Does anybody could help me?






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-12-01  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-27  0:00 VIDEO MEMORY ACCESS WITH POINTERS ???
1999-11-27  0:00 ` DuckE
1999-11-29  0:00   ` Nick Roberts
1999-11-29  0:00     ` Niklas Holsti
1999-12-01  0:00       ` Robert Dewar
1999-11-27  0:00 ` David C. Hoos, Sr.
1999-11-28  0:00 ` Vladimir Olensky
1999-11-30  0:00 ` Gautier

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