Mail Archives: djgpp/1995/02/06/18:39:48
Hello,
I just trying rebuild libgame library made by cnc AT netcom DOT com
using 1.12m4 and I would like to ask you for a help with
this error.
There is a function:
void gfx_setcolor(intu8 color, intu8 red, intu8 green, intu8 blue)
{
asm(
"movw $0x3c8,%%dx\n"
"movb %0,%%al\n"
"outb %%al,%%dx\n"
"incb %%dl\n"
"movb %1,%%al\n"
"outb %%al,%%dx\n"
"movb %2,%%al\n"
"outb %%al,%%dx\n"
"movb %3,%%al\n"
"outb %%al,%%dx\n"
:: "m" (color), "m" (red), "m" (green), "m" (blue) /**/
: "%al", "%dx", "cc");
}
and in the line market /**/ gcc reported this error:
gfx.c: In function `gfx_initpal':
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
gfx.c:98: inconsistent operand constraints in an `asm'
This is becouse of differences between gcc in 1.11m5 and 1.12m4,
but in never used asm expression so I don't know how to fix it.
Thank you
BTW: after I aplied dj112m4.zip to my djgpp go32 still report 1.12m3
it's probably becouse this maintance didn't change go32, but anyway
this make some dezinformation.
P.S.: I would also like ask anybody who is using MultiEdit 7.0 for
running djgpp if he/she has no macro for right parsing of compiler
errors.
Thank all of you :-)
--
Richard Vanek
richo AT frdsa DOT utc DOT sk
University of Transport and Communication
- Raw text -