Date: Thu, 1 Oct 1998 21:41:40 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Neil Walker cc: djgpp AT delorie DOT com Subject: Re: assembler switches In-Reply-To: <3614151E.3C3E@syntegra.bt.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 1 Oct 1998, Neil Walker wrote: > Can anyone help with the following problems as I'm new to DJGPP and > cannot seem to find the required help in INFO: Please also consider looking in the FAQ (v2/faq211b.zip). > 1. How to set the compiler to allow 286 specific commands, e.g. shl di,6 > (in borland C it was done with the -1 option, e.g. gcc -1 file.c) Use inline assembly. > 2. Syntax to allow inline assembly - I assumed it would be 'asm', e.g. > asm mov dx,3DAh > but this does not work (the disallow inline assembly flag is not set) GCC's inline assembly syntax is *very* different. Please see section 18.13 in the FAQ.