Hi......... can anyone tell me how can i insert a few assembly instructions in a C code
The more important question is why you think you need to do this.
Almost all such requests are based on a fundamentally flawed understanding
You've posted this as "Non-specific (Generic)", but the answer will be specific to the particular compiler that you are using - so, in fact, nobody can really answer you question!
Hi.
You have must enable Generate Assembler SRC File switch and Assembler SRC File in Project Workspace.
#include <reg51.h> #include <stdio.h> #include <stdlib.h> #include <rtx51tny.h> void Delay(unsigned char Length) { #pragma ASM djnz r7,$ #pragma ENDASM }
Best Regards
http://www.keil.com/support/docs/2308.htm
Jon