Pelles C forum

Assembly language => Assembly discussions => Topic started by: czerny on November 19, 2010, 01:28:07 AM

Title: error #3151: [asm] Syntax error.
Post by: czerny on November 19, 2010, 01:28:07 AM
Hallo,

is there a list of errorcodes in the IDE-hlp? I can not find one.

I would like to build SDL.dll and get the above error in SDL_cpuinfo.c

May be anyone knows, what the problem is there.

Thank you

czerny
Title: Re: error #3151: [asm] Syntax error.
Post by: czerny on November 19, 2010, 06:22:45 PM
I have boiled it down to the following snippet. The combination of 'inline' and 'jl' seams to be the problem. Or what do you think?

-----------------------------------
static inline int tst(void)
{
   int bla = 0;
   __asm
   {
   jl   done
   done:
   }
   return bla;
}

int main()
{
   if (tst());
}
-----------------------------------

czerny