feiutm9898
Full Member level 4
Can anyone help me the code below. I need to call assembly function by using C code. The #define macro is ok. But there is compilation error at main ().
-----------------------------------------------------
1) Let's say I have a assembly code below:
.GLOBAL AssemblyFun
AssemblyFun:
nop;
nop;
.
.
2) I define them as macro I define them
#define C_function(void) AssemblyFun(void)
3) I use C code to call the assembly function
main ()
{
C_function();
}
-------------------------------------------------------
-----------------------------------------------------
1) Let's say I have a assembly code below:
.GLOBAL AssemblyFun
AssemblyFun:
nop;
nop;
.
.
2) I define them as macro I define them
#define C_function(void) AssemblyFun(void)
3) I use C code to call the assembly function
main ()
{
C_function();
}
-------------------------------------------------------