Mail Archives: djgpp/1997/12/29/06:22:53
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 -