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

inserting one line assembly code in c

hi ..i am new to embedded systems ...
i am using uvision from keil ..
i just wanna include one line assembly
code .. into my c-code ..
example -- nop (no operation ) assembly
instuction into my c code .. how do we do
it ???
thanks ..
pruthvi

Parents
  • 1) the way Keil handles asm in C is - at best - crummy. It totally destroy your ability to see the original code in the emulator and require a two pass compilation-assembly.
    2) if it really is a nop you want to insert Keil has provided a workaround _nop_() will insert a nop in your code.

    Erik

Reply
  • 1) the way Keil handles asm in C is - at best - crummy. It totally destroy your ability to see the original code in the emulator and require a two pass compilation-assembly.
    2) if it really is a nop you want to insert Keil has provided a workaround _nop_() will insert a nop in your code.

    Erik

Children
No data