delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/24/02:52:41

Xref: news2.mv.net comp.graphics.algorithms:20821 comp.os.msdos.djgpp:4194
From: avly AT castle DOT net (An)
Newsgroups: comp.os.msdos.djgpp,comp.graphics.algorithms
Subject: Re: Inline ASM, Mode 13h problem
Date: Thu, 23 May 1996 17:35:31 GMT
Organization: The Castle Network, http://www.castle.net
Lines: 26
Message-ID: <31a49fcd.2372426@news.caSTLE.NET>
References: <31A26377 DOT 29C6 AT postoffice DOT ptd DOT net>
Reply-To: avly AT castle DOT net
NNTP-Posting-Host: bridge55.castle.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Matthew J. Freyman" <flatline AT postoffice DOT ptd DOT net> wrote:

>    movb %3, %%es:(%%edi);"
 
The asm generated equivalent to the above line could be something
like: movb -6(%ebp), %es:(%edi) which won't assemble.

>    :
>    : "g" (glib_selector), "g" (x), "g" (y), "g" (c)
>    );

You could change the constraint on (c) to a register instead of "g"
"b" works fine since you don't use it in your code.

Also, it might be a good idea to add the registers-modified field:
 : "ax", "di", "bx", "memory"

>
>I'm developing under RHIDE beta4.  I get an assembler error in the 
>putpixel function, and I believe it is with the following line:  
>	movb %3, %%es:(%%edi);"  
>
>ERROR:  OPERANDS GIVEN DON'T MATCH ANY KNOWN 386 INSTRUCTION.
>

-An

- Raw text -


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