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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6e0a529082576354 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: updating a hardware cursor with assembly and ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1204832357 12.201.97.213 (Thu, 06 Mar 2008 19:39:17 GMT) NNTP-Posting-Date: Thu, 06 Mar 2008 19:39:17 GMT Organization: AT&T ASP.att.net Date: Thu, 06 Mar 2008 19:39:17 GMT Xref: g2news1.google.com comp.lang.ada:20202 Date: 2008-03-06T19:39:17+00:00 List-Id: cl1 wrote: > unsigned char outportb (unsigned short _port, unsigned char _data) > procedure OutportB (Port : Natural; Data : Natural); > pragma Import(C, OutportB, "outportB"); I would recommend using the types in Interfaces.C and its children rather than the predefined types. You should give the C name in the pragma Import exactly as it appears in C: "outportb". -- Jeff Carter "Saving keystrokes is the job of the text editor, not the programming language." Preben Randhol 64