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.
Hi, i want to put some assembly instruction in my c program, using .asm and .endasm but it seem doesn't work. Can anybody help, i'd appreciate your respond. sincerly, hardian hardian_97@yahoo.com
There's an app. note here somewhere on this. Basically, Keil C51 can't do in-line assemlby like other hosted compilers. You need to compile your C/asm file using a compiler directive SRC to create an assembler file. Then you assemble that file into an object file. Look for the app. note on Keil's website, this issue has been talked about quite a lot.
"There's an app. note" And it's in the manual. Search the PDF file for "ENDASM" with uVision, you just need to check the 'Generate assembler SRC file' and 'Assemble SRC file' options