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-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!transit.news.xs4all.nl!195.241.76.212.MISMATCH!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: asm() References: From: Ludovic Brenta Date: Tue, 22 Mar 2005 00:13:10 +0100 Message-ID: <877jk03855.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:dOlc6Tk/QwSpRgi1nRI7VmjEsTM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 22 Mar 2005 00:13:08 CET NNTP-Posting-Host: 83.134.241.12 X-Trace: 1111446788 dreader2.news.tiscali.nl 44075 83.134.241.12:37349 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:9704 Date: 2005-03-22T00:13:08+01:00 List-Id: 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.