Calling assembly in keil file from c code?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

   

I've read that you can put assembly in a separate "8051 Keil Assembly File". Is there a way to create functions in your main.c code to call blocks of code in the assembly file?

   

Thanks

0 Likes
1 Reply
Anonymous
Not applicable

Hi Hayen,

   

Please check if these articles are useful (from Keil help online):

   

C51: CALLING ASSEMBLY ROUTINES FROM C

   

www.keil.com/support/docs/50.asp

   

and

   

Interfacing C to Assembler

   

www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm

   

Regards,

   

Raj

0 Likes