Witam, chciałbym prosić o przerobienie tej funkcji aby można było ją skompilować w dev-c++ lub jakieś porady co i jak bo pierwszy raz coś robię z asm
int getCharW(int Font, char* Name, int nAlign)
{
int TextLen = strlen(Name);
int nret = 0;
__asm
{
push nAlign
push TextLen
push Text
push Font
call Addr // Addr = 0x3ABC11
mov nret, eax
}
return nret;
}
probowałem coś takiego ale lipa ;./
int getCharW(int Font, char* Name, int nAlign)
{
int TextLen = strlen(Name);
int nret = 0;
asm("push %0":: "m" (nAlign));
asm("push %0":: "m" (TextLen));
asm("push %0":: "m" (Name));
asm("push %0":: "m" (Font));
asm("call" : "m" (Addr)); // Addr = 0x3ABC11
asm("mov nret, eax");
return nret;
}