www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/08/19:49:26

Date: Thu, 1 Oct 1998 21:41:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Neil Walker <neil DOT walker AT syntegra DOT bt DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: assembler switches
In-Reply-To: <3614151E.3C3E@syntegra.bt.co.uk>
Message-ID: <Pine.SUN.3.91.981001214008.18395e-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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