We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, can any one tell me the way how to mix c and assembly programing....... i know one way of inline programming i.e.
....... ....... C code.... ..... .....
#pragma asm ........ assembly code.... ........ #pragma endasm
but this type of file written cannot be included in any other file......
i have used IAR assembler for other microcontroller, in which writting
asm ("assembly code");
was working perfectly......
i dont know wether keil supports this.... if yes than what prototype file has to be included for this......
Any help is appriciated....
Thanking You, Pranav Saraswala.
"i dont know wether keil supports this..."
Don't you? You started this thread by quoting the Keil ASM and ENDASM pragmas - that is the way that Keil does it. See the C51 Manual.
But the whole point if the answers you have received in this thread is to advise you to avoid doing this!
Just because a feature is available doesn't mean that it's going to be a good solution!