www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/19/22:46:13

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: FW: Inline ASM
Date: Thu, 17 Sep 1998 18:12:35 -0300
Organization: NBTel Internet
Lines: 22
Message-ID: <36017B43.8048E90E@unb.ca>
References: <01BDE216 DOT FEF3F280 AT mmolekwa DOT rrs DOT co DOT za>
NNTP-Posting-Host: fctnts07c92.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mthimkhulu Molekwa wrote:
> >asm("movw 0x0003, %%ax;"
> >   "int $0x10;"
> >    : : "%eax");
> >
> 
> Correct me if I'm wrong. Should the above code be:
> 
> asm("movw $0x0003, %%ax\n\t"
>        "int $0x10\n\t"
>        : : "%eax");
> 
> ===> replaced "0x0003" by "$0x0003" and ";" by "\n\t"
	Ok, your right about the "$", but the ";" works just fine, and I feel that it
looks better/is easier to type than "\n\t".
-- 
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca


hanges in the
> compilation options.
	You might want to use "-gstabs+" for better debugging.  There are some (rare)
situations when normal "-g" doesn't do the trick.

-- 
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca


- Raw text -


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