SLAU132Y September 2004 – June 2021
extern "C" {
extern int asmfunc(int a); /* declare external asm function */
int gvar = 0; /* define global variable */
}
void main()
{
int var = 5;
var = asmfunc(var); /* call function normally */