How to Call Assembly function from C Code for MC9S08DZ

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to Call Assembly function from C Code for MC9S08DZ

2,026件の閲覧回数
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 返信

541件の閲覧回数
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 件の賞賛
返信