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

ASM

How to use ASM into C code compiled by µVision ?

Parents
  • 1)I have asm code for more than 1 function... Might I create a ".a51" file for each function?

    2) How to link it to the ".c" file?

    1) as you like all in one or separate, no difference
    2) Brutal answer: with the linker, but you probably ask "how are parametres passed?. Create a 'skeleton' C function mimicking your assembly subroutine. Use the list or use src as a template.

    Erik

Reply
  • 1)I have asm code for more than 1 function... Might I create a ".a51" file for each function?

    2) How to link it to the ".c" file?

    1) as you like all in one or separate, no difference
    2) Brutal answer: with the linker, but you probably ask "how are parametres passed?. Create a 'skeleton' C function mimicking your assembly subroutine. Use the list or use src as a template.

    Erik

Children