How to Call Assembly function from C Code for MC9S08DZ

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

How to Call Assembly function from C Code for MC9S08DZ

2,013 次查看
sbharsha
Contributor I
Hi,
 
Please any body know how to call Assembly function from the C Code. ?
 
Its urgent please let me know with som sampe code(I am passing arguments to Assembly code.).
 
Harsha S
标签 (1)
0 项奖励
回复
1 回复

528 次查看
CompilerGuru
NXP Employee
NXP Employee
The C compiler defines the calling convention, so the assembly code will have to follow it in order to be callable from C. Check the backend chapter of the compiler manual (pdf) for the calling convention used.

The assembler manual also contains a "Mixed C and Assembler Applications" chapter, but you still need to read the calling convention description in the compiler manual too.

Daniel
0 项奖励
回复