comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: asm()
Date: Tue, 22 Mar 2005 00:13:10 +0100
Date: 2005-03-22T00:13:08+01:00	[thread overview]
Message-ID: <877jk03855.fsf@insalien.org> (raw)
In-Reply-To: pan.2005.03.21.19.49.05.906143@nospam.a2lf.org

Jean-Baptiste CAMPESATO writes:
> Hello,
> I search help to use the asm procedure. Somebody can help me ?
> *Type of syntax (AT&T, x86...), and what are the others arguments*
> And if possible, have you an example to switch to 13h (the graphic mode).
> Thanks a lot.

There is no "asm procedure".  The Ada term for what you want is
"machine code insertions".  ARM 13.8 states that machine code
insertions are defined by the compiler, but that the compiler must do
so by means of package System.Machine_Code.

Since I remember you use GNAT on GNU/Linux, look at the GNAT User's
Guide, chapter "Inline Assembler", for a complete discussion.  GNAT
supports AT&T syntax only.

I'm not sure how to switch the video card to VESA mode 16#13# (13h),
if that's what you mean.  Doing so requires direct access to the
hardware, doesn't it?  I'm nor sure that Linux provides such direct
access, I suspect you'll have to use the framebuffer interface, or
svgalib.

-- 
Ludovic Brenta.




  reply	other threads:[~2005-03-21 23:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21 19:49 asm() Jean-Baptiste CAMPESATO
2005-03-21 23:13 ` Ludovic Brenta [this message]
2005-03-22  7:41   ` asm() Jean-Baptiste CAMPESATO
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox