delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/15/12:43:01

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>,
"Thomas Luzat" <thomas DOT luzat AT gmx DOT net>
Subject: RE: Inline ASM
Date: Tue, 15 Sep 1998 17:41:26 +0100
Message-ID: <000a01bde0c7$ae710c80$844e08c3@arthur>
MIME-Version: 1.0
In-Reply-To: <35FE8291.37810D2D@gmx.net>
Importance: Normal

> Hi there!
>
> I just wanted to start programming in C/C++ and downloaded DJGPP for
> this purpose. Everything is working fine, but I haven't figured out how
> to use inline assembler. That's what I wanted to convert from Turbo
> Pascal to DJGPP:
>
> asm
>    mov ax,0003h;
>    int 10h;
> end;
>
> I need just one sample to start. I can't figure out how to do it from
> the docs (maybe you can point me to the right one?)

DJGPP uses AT&T syntax for inline ASM. Some people like it, others (like me)
believe that it further compounds what is an already too complex language.
If you don't like AT&T format, you should try NASM or another assembler. If,
however, you definately need inlise ASM, there's a AT&T ASM primer at
http://www.delorie.com/djgpp/

HTH

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019