Hi......... can anyone tell me how can i insert a few assembly instructions in a C code
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