delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/29/06:22:53

Date: Mon, 29 Dec 1997 13:22:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: elizabeth anne dominy <msunguli AT global DOT co DOT za>
cc: djgpp AT delorie DOT com
Subject: Re: Inline asm in DJCPP
In-Reply-To: <01bd136e$b21cbcc0$88a903c4@msunguli.global.co.za>
Message-ID: <Pine.SUN.3.91.971229131658.28272A-100000@is>
MIME-Version: 1.0

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. 

- Raw text -


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