comp.lang.ada
 help / color / mirror / Atom feed
From: "Ed Falis" <falis@ma.aonix.com>
Subject: Re: Object Ada: In-line assembler?
Date: 1997/10/30
Date: 1997-10-30T00:00:00+00:00	[thread overview]
Message-ID: <EIvD1A.HEx@sd.aonix.com> (raw)
In-Reply-To: 3457EAB0.3FEBBF9E@gate.net



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 <objectada dir>\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






      reply	other threads:[~1997-10-30  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-29  0:00 Object Ada: In-line assembler? David Starling
1997-10-30  0:00 ` Ed Falis [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