Hi all, The question as above. I'm using uVision/51 if it helps. Best Regards, Guorong
You don't. Period. What you can do, though, is call a C function from an asm function. Being called by other functions is what functions are all about.
Hi Hans, Thanks for the clarification.. Is there any references on how should i call C functions from ASM? Best regards
"Is there any references on how should i call C functions from ASM?" Although it is more common to call ASM routines from C than vice versa, just make sure you abide by all the interfacing and register usage conventions: http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm