C routine call from assembly language.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C routine call from assembly language.

694 Views
prashanterande
Contributor I

Helllo,

I prashant currently working on MC9S12p128.

We port our PID Controller on P128 series from 68hc11.

But problem was we done in assembly language,

and here I have D-flash library routines in C language.

I have to call these library Function from assembly language.

please help me.

prashant erande.

Labels (1)
Tags (1)
0 Kudos
2 Replies

469 Views
prashanterande
Contributor I

hello

please help me..........

0 Kudos

469 Views
Ben
Senior Contributor I

It can be done by calling the C routine with JSR assembly command.

variable can be transferred to the C routing too using A register.

C routine returned value located in A reg too.

Benny