Mail Archives: djgpp/1996/05/24/02:52:41
"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 -