comp.lang.ada
 help / color / mirror / Atom feed
From: aklee@spam.this.interport.net (Albert K. Lee)
Subject: Re: low-level
Date: 1998/04/14
Date: 1998-04-14T00:00:00+00:00	[thread overview]
Message-ID: <slrn6j5p5l.iuj.aklee@interport.net> (raw)
In-Reply-To: 35324FDE.68B0@gsfc.nasa.gov


On Mon, 13 Apr 1998 13:48:14 -0400, Stephen Leake <Stephen.Leake@gsfc.nasa.gov> wrote:
>Carlos Piqueres Ayela wrote:
>> 
>> I'm using GNAT 3.10 and Windows 95.
>> I'm using the Jerry Van Dijk 's  great Adagraph package to do simple
>> graphics.
>> 
>> But what I want to know is how you can access directly to the hardware (for
>> example the SVGA hardware, BIOS interrupts...) for writing your own routins
>> (graphics, hardware drivers...).
>> 
>> Not doing it in C and interfacing with ADA programs, just doing it in ADA.
>> I know that you can do such things in C with far pointers, library
>> functions  (int86()...) and things like that.
>> Is there any equivalent to that in ADA ??
>
>Just call the same library from Ada that you would from C. You'll have
>to write the equivalent Ada declaration, and add pragma Import instead
>of the body.

Actually he asked how to interface with the low-level hardware, using
some low-level programming.  He did use the magic words 'driver',
'hardware', and 'interrupt'.  The 'library function' he referred to
deals with calling x86 hardware/OS interrupts using specific register
values, not with any Windows graphics display routines.

He wants to program some Intel x86 hardware directly, probably using
some combination of assembly language and Ada.  In addition it sounds
like he's coming from a 16-bit DOS world ("BIOS?"), which is probably
hard to fiddle with using 32-bit-only GNAT.  Having never tried this,
I don't have an answer, but at I can at least clarify the question ...

-Albert




      reply	other threads:[~1998-04-14  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-13  0:00 low-level Carlos Piqueres Ayela
1998-04-13  0:00 ` low-level Tom Moran
1998-04-13  0:00 ` low-level Jerry van Dijk
1998-04-13  0:00 ` low-level Stephen Leake
1998-04-14  0:00   ` Albert K. Lee [this message]
replies disabled

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