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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7243a2d64b330abe X-Google-Attributes: gid103376,public From: "Ed Falis" Subject: Re: Object Ada: In-line assembler? Date: 1997/10/30 Message-ID: #1/1 X-Deja-AN: 286757154 Sender: news@sd.aonix.com (USENET News Admin @flash) References: <3457EAB0.3FEBBF9E@gate.net> X-Nntp-Posting-Host: 192.157.137.14 X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Aonix, San Diego, CA, USA Newsgroups: comp.lang.ada Date: 1997-10-30T00:00:00+00:00 List-Id: David Starling wrote in message <3457EAB0.3FEBBF9E@gate.net>... >The documentation for my Special Edition version of Object Ada indicates >that the compiler will accept in-line assembler via the >MACHINE_OPERATIONS_386 (I think) intrinsic package. However I can't >find any documentation for the syntax. > >Can anyone give me a clue? > >Thanks, >David Look at the file m386r.ads in \lib\src. It's all there in gory detail. Be careful. You have to think like an assembly language programmer when mixing Ada and instrinsic source statements. If you get any messages out of the code generator about invalid operands, you've violated this mindset, and will probably need to declare a local copy of what you're trying to reference. That kind of thing aside, it's a very usable package - I hardly ever interface to assembly code any more, and then it's typically a matter of not wanting to bother rewriting some existing assembly code that I can reuse as is. - Ed Falis Aonix