Calling Functions from Assembly Language

Assembly language programs can call the functions written in either C or assembly language. From within the assembly language instructions, you can call the C functions. For example, if the C function definition is:

  int my_c_func(int i)
  {

  return i++;

  }  

the assembly language calling statement should be:

  jsr _my_c_func  
Note: The function is called using its link name.