Inline Assembler
int main ()
{
__asm {
call label
jmp end
label:
mov ecx,4
ret
end:
}
return 1;
}
The problem is: i want to have label as a global label that can be called from multiple functions. The thing is: it won't let you put labels outside of functions, and I CANNOT use it as an __asm block inside of another c function. Example of something kind of what I want (this doesn't work of course):
__asm {
label:
mov ecx,4
ret
}
int main ()
{
__asm {
call label
}
return 1;
}
Please tell me if there is a way to do something with the same effect (BUT NOT AS A C FUNCTION)
Dave2001,
Dave2999@hotmail.com

