If C code want to call assembly label
1. at *.s Export Label_name
2. at *.c export void Label_name(....)
the parameters in sequence use r0 ,r1 ,r2....
3. you can use Label_name() at any c functions.
If you want to use assembly cold at C
void C_function(){
__asm{
assembly language
}
}
1. at *.s Export Label_name
2. at *.c export void Label_name(....)
the parameters in sequence use r0 ,r1 ,r2....
3. you can use Label_name() at any c functions.
If you want to use assembly cold at C
void C_function(){
__asm{
assembly language
}
}
Comments