Date: Mon, 29 Dec 1997 13:22:02 +0200 (IST) From: Eli Zaretskii To: elizabeth anne dominy cc: djgpp AT delorie DOT com Subject: Re: Inline asm in DJCPP In-Reply-To: <01bd136e$b21cbcc0$88a903c4@msunguli.global.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 29 Dec 1997, elizabeth anne dominy wrote: > My question is, how does one code > inline assmebler in DJCPP, because when I use the format Borland Turbo C > accepts i get a parse error after the asm statement. > > eg : > > asm mov ax,1 > returns a parse error before the mov The syntax of inline assembly is wildly different between different compilers. The DJGPP FAQ list explains this issue in some detail in section 18.8, and in addition, the assembly syntax is discussed in sections 17.1 and 17.2. The latest release of the FAQ is available as v2/faq210b.zip from the same place you get DJGPP. > I must admit I'm too impatient to read through all the help manuals. Then it is tough on you. The gcc inline assembly facilities are extremely flexible and powerful, but you do need to read the docs (the FAQ refers you to relevant places) in order to use them correctly. Randomly poking around with the syntax you are used to from Borland days will get you nowhere.