Hi ALL,
before posting my -'opend source'- uncmopleted project , i want to show this demo first.
It is implementing of local Masm Lable "@@:" , already done for asm code and also for the c code it self.
it also showing you how to call asm code just like the original c function , see the printf and hwo we call MyTest asm lable.
here is the code
/*
How to compile for Windows:
smlrcc -win Label.c -o Label.exe
*/
// Masm local lable demo
#include <stdio.h>
// here applied to asm code just like Masm
#asm
.code
MyTest:
jmp @f
mov EAX , 1
@@:
mov EAX , 2
ret
#endasm
// here applied to c code it self
int main(void)
{
int k = 20;
goto @f;
puts("Hello, World!"); // never printed
@@:
k--;
while(k>0) goto @b;
puts("great , is'nt it \n");
// MyTest is a asm lable.
printf("test = %d",MyTest());
return 0;
}
hope you like it , feel free to add any freaturs you want and share it with us.
will post it by next few hours.