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

assembly instruction

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

Parents
  • 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.

Reply
  • 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.

Children