From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,598cad53c05b3289 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 25 Sep 2008 20:31:54 -0500 From: "Steve" Newsgroups: comp.lang.ada References: <6e0427b4-4871-4e51-a1b1-696136aa45a6@i20g2000prf.googlegroups.com> Subject: Re: Port IO with Gnat Date: Thu, 25 Sep 2008 18:32:01 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Message-ID: <3aydnfE84t4XpkHVnZ2dnUVZ_uqdnZ2d@comcast.com> X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 71.59.220.217 X-Trace: sv3-MX2R9Kz+pdOKtzVR39HgRMFC6qfuayvjHd9qmH0j1rlR1y3WVCzCTg+/9Elh4hNDz9inOWl+3q3LNeM!2lquCOJwbYhYuvwp/u/wucjlICm5NrkOjh9wBweHWPdSAaTQmAFBr2U2CphhD/d4Fit4PXoelL3w!TX8/E7u/GMoJGr2XVBtnh5AweP9rOg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news1.google.com comp.lang.ada:2093 Date: 2008-09-25T18:32:01-07:00 List-Id: 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