comp.lang.ada
 help / color / mirror / Atom feed
* asm()
@ 2005-03-21 19:49 Jean-Baptiste CAMPESATO
  2005-03-21 23:13 ` asm() Ludovic Brenta
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Baptiste CAMPESATO @ 2005-03-21 19:49 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: asm()
  2005-03-21 19:49 asm() Jean-Baptiste CAMPESATO
@ 2005-03-21 23:13 ` Ludovic Brenta
  2005-03-22  7:41   ` asm() Jean-Baptiste CAMPESATO
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Brenta @ 2005-03-21 23:13 UTC (permalink / raw)


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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: asm()
  2005-03-21 23:13 ` asm() Ludovic Brenta
@ 2005-03-22  7:41   ` Jean-Baptiste CAMPESATO
  0 siblings, 0 replies; 3+ messages in thread
From: Jean-Baptiste CAMPESATO @ 2005-03-22  7:41 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-22  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-21 19:49 asm() Jean-Baptiste CAMPESATO
2005-03-21 23:13 ` asm() Ludovic Brenta
2005-03-22  7:41   ` asm() Jean-Baptiste CAMPESATO

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