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.
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; }
The manual can help you. That's what you got it for.
Yet again, just read the error message literally: 'asm/endasm' - you know what they are, as you've written them in your code! requires - means something is needed; as this is an error message you should take this as a hint that you have omitted something that is needed. src-control to be active - follows requires, so this is the thing that is required! Look up the SRC control in the Manual