AnsweredAssumed Answered

calling a c funtion from assembly having two arguments.

Question asked by luck on Nov 15, 2012
Latest reply on Nov 15, 2012 by luck

i  have a c function for eg :  void function_name(char param1,char param2)


now i want to call this function from assembly code.


i know that how to call a c funtion with one parameter from assembly


eg:  ldab #12    

      jsr function_name


but i dont know how to pass two parameters from assembly while calling a c function.


i am using microcontroller MC9S12XDT512


and i am using freescale code warrior.


so please suggest if any body know how to do it.