C routine call from assembly language.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

C routine call from assembly language.

1,329 次查看
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.

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,104 次查看
prashanterande
Contributor I

hello

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

0 项奖励
回复

1,104 次查看
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