comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Baptiste CAMPESATO <camje_lemon@nospam.a2lf.org>
Subject: Re: asm()
Date: Tue, 22 Mar 2005 08:41:44 +0100
Date: 2005-03-22T08:40:27+01:00	[thread overview]
Message-ID: <pan.2005.03.22.07.41.44.256811@nospam.a2lf.org> (raw)
In-Reply-To: 877jk03855.fsf@insalien.org

Le Tue, 22 Mar 2005 00:13:10 +0100, Ludovic Brenta a ᅵcritᅵ:

> 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.

Thanks.
But i create a "little kernel" to use the VGA mode 13h.
With a bootstrap in ASM.
I will read the chapter "Inline Assembler".
bye



      reply	other threads:[~2005-03-22  7:41 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 ` asm() Ludovic Brenta
2005-03-22  7:41   ` Jean-Baptiste CAMPESATO [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