From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: Port IO with Gnat
Date: Thu, 25 Sep 2008 18:32:01 -0700
Date: 2008-09-25T18:32:01-07:00 [thread overview]
Message-ID: <3aydnfE84t4XpkHVnZ2dnUVZ_uqdnZ2d@comcast.com> (raw)
In-Reply-To: de90dcd1-8540-446b-9926-06d671416736@i20g2000prf.googlegroups.com
<levy.david.c@gmail.com> wrote in message
news:de90dcd1-8540-446b-9926-06d671416736@i20g2000prf.googlegroups.com...
On Sep 1, 7:06 am, a...@anon.org (anon) wrote:
> -- There is a workable example in the gnat doc that comes with GNAT.
> -- But these you routine should give you and idea.
>
> --
> -- If your using x86 processors
> --
> procedure Out_Byte ( Port : unsigned_16 ;
> Data : unsigned_8 ) is
>
> begin -- Out_Byte
> Asm ( Template => "outb %%al, %%dx" & ASCII.LF,
> Inputs => ( Unsigned_8'Asm_Input ( "a", Data ),
> Unsigned_16'Asm_Input ( "d", Port )
[snip]
Unfortunately this does not work because of Windows XP's security,
which disallows port io.
How does one ask XP for permission to do the port IO from GNAT?
Thanks
Dave
A quick search on "port io from xp" (on ixquick) finds:
http://www.geekhideout.com/iodll.shtml
There is an IO.DLL that does the grubby work for you, so all you have to do
is use the DLL.
Regards,
Steve
BTW: Some times my newsreader (outlook express) doesn't qoute replies
properly (sometimes it does)... sorry
next prev parent reply other threads:[~2008-09-26 1:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-31 13:15 Port IO with Gnat levy.david.c
2008-08-31 21:06 ` anon
2008-09-26 0:34 ` levy.david.c
2008-09-26 1:32 ` Steve [this message]
2008-09-26 3:32 ` anon
2008-09-01 12:41 ` Stephen Leake
2008-09-01 14:50 ` Gary Scott
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox