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

compiling C & Assembler

When i compile the following code with SRC Directive of this source file, the error occurs. Can anyone help me to deal with it?

unsigned char function(char buffer)
{
	#pragma asm

		MOV A, R7
		MOV R1, A
	#pragma endasm
	return 1;
}

TRANSCEIVE.C(15): error C272: 'asm/endasm' requires src-control to be active

TRANSCEIVE.C(63): error C272: 'asm/endasm' requires src-control to be active

0