This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C and Assembler

Hi everybody.
I want to ask. I write a program in C languge, in this program I want to call a program that I wrote by assembler, when I use below it's not run. Please help me.
#pragma src(Main.asm)
#include<reg52.h>
#include<stdio.h>
#include<math.h>
#include <intrins.h>
#include <stdlib.h>

void main(void)
{
Write_Lcd();
Delay();
}
void Delay()
{
#pragma asm ; open inline-assembly block
Mov R3,#0
LoopTreDsp:
Nop
Nop
Nop
Djnz R3,LoopTreDsp
#pragma endasm
}

0