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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aa58ffd81c2606db X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail From: Jean-Baptiste CAMPESATO Organization: a2lf - Association pour le Logiciel Libre Francophone Subject: Re: asm() Date: Tue, 22 Mar 2005 08:41:44 +0100 User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Message-Id: Newsgroups: comp.lang.ada References: <877jk03855.fsf@insalien.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 22 Mar 2005 08:40:27 CET NNTP-Posting-Host: 83.112.188.8 X-Trace: 1111477227 news.wanadoo.fr 846 83.112.188.8:34273 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:9713 Date: 2005-03-22T08:40:27+01:00 List-Id: 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