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

How to use assembler into C sourse code

Hi,everyone!
Help me, please, with my problem!
i'm working in Keil C251 compiler.
i have to use assembler code into C code
and i found in C251 user's manual directives "#pragma asm/endasm". but i can't compile this.
compiler writes:
" 'asm/endasm' requires src-control
to be active ".
May be i must to do anything for working with asm/endasm directives, what i dont know. Or may be i'm in wrong way.
Please, help me!
Gennady.

Parents
  • See the Thread "How to compiler (sic) *.src file?"

    Look up the message in the Errors help file (click on the message in the build results window, then press F1).

    You need to use the command-line option (or uVision option) to tell the Compiler to generate .src.
    See the C251 manual documentation on "#pragma asm/endasm

Reply
  • See the Thread "How to compiler (sic) *.src file?"

    Look up the message in the Errors help file (click on the message in the build results window, then press F1).

    You need to use the command-line option (or uVision option) to tell the Compiler to generate .src.
    See the C251 manual documentation on "#pragma asm/endasm

Children
No data