delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/30/12:57:21

Date: Thu, 30 Nov 1995 17:08:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Werner Drescher <k1950 AT fh-sw DOT de>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: assembler

On Thu, 30 Nov 1995, Werner Drescher wrote:

> The first question is : is the Syntas asm(   ); correct or must I use asm 
> ("   ");
> 
> The next is  I want to write more than one instruction , but when I use 
> ";" to seperate them I get a error-message
> 
> I use the instruction movb 0x308,%dx and get a segmentation violent error 
> why ?

You should read the relevant portions of the docs first.  A few chapters 
of the GCC on-line docs explain the inline assembly facilities of GCC.  
Their syntax is significantly different from that of other DOS compilers, 
so you are in for some pretty nasty guesswork if you don't read those 
docs first.

The syntax of the assembly instructions is also different.  The DJGPP FAQ 
list (available as faq102.zip from the same place you get DJGPP) explains 
these differences in short in Chapter 17, and also points you to the full 
docs on this issue.

For examples, download the library sources (djlsr112.zip) and look in 
there.

- Raw text -


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