www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/01/08:31:45

Xref: news2.mv.net comp.os.msdos.djgpp:6665
From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Inline ASM : "Error: operands given ..."
Date: Wed, 31 Jul 1996 18:26:04 GMT
Lines: 30
Message-ID: <838837454.21497.0@abwillms.demon.co.uk>
References: <4tlo26$8cb AT srvr1 DOT engin DOT umich DOT edu>
NNTP-Posting-Host: abwillms.demon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

dbarrett AT news-server DOT engin DOT umich DOT edu (David M Barrett) wrote:
>--------------> movw %%es, %%ds                 \n 

There is no instruction that does that. Either:

pushw %%es
popw %%ds

or

movw %%es,%%ax
movw %%ax,%%ds

>--------------> addw %%ax, %%edi                \n 

%%edi isn't a word register.

Try addl %%eax, %%edi or addw %%ax,%%di.

Regards,


ABW

--
I have become... Comfortably numb...

Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.hardcafe.co.uk/Alaric/">http://www.hardcafe.co.uk/Alaric/</A>

- Raw text -


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