| ||||||||
Technical Support Support Resources Product Information | C51: GETTING INLINE ASSEMBLY TO WORKInformation in this article applies to:
QUESTIONHow do I implement inline assembly in C51 using the ASM and ENDASM directives. I have read some of the knowledgebase articles relating to this problem, but I still cannot get it to work. ANSWERThe following example program, MAIN.C, demonstrates some simple inline assembly.
void main(void){
test();
#pragma asm
JMP $ ; endless loop
#pragma endasm
}
The following rules apply to C51 inline assembly:
MORE INFORMATION
SEE ALSO
FORUM THREADSThe following Discussion Forum threads may provide information related to this topic. Last Reviewed: Thursday, July 17, 2008 | |||||||
| ||||||||