C & Assembly

Can any one tell me how to mix C and Assembly in kiel in a single file?

Thanks in advance

Parents
  • we have to use #pragma directive

    #ASM
    ...(ASM code)

    #ENDASM

    make a few changes in the compiling Environment, like generate src file, ...

    Try C51 pdf that comes along with Keil Help documentation.
    Now thats the procedure in which it should work.
    If it works fine do let me know.
    When i tried , no errors, but didnt work .

Reply
  • we have to use #pragma directive

    #ASM
    ...(ASM code)

    #ENDASM

    make a few changes in the compiling Environment, like generate src file, ...

    Try C51 pdf that comes along with Keil Help documentation.
    Now thats the procedure in which it should work.
    If it works fine do let me know.
    When i tried , no errors, but didnt work .

Children
More questions in this forum