How to Call Assembly function from C Code for MC9S08DZ

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

How to Call Assembly function from C Code for MC9S08DZ

1,789 Views
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
Labels (1)
0 Kudos
Reply
1 Reply

304 Views
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 Kudos
Reply