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 include inline assembly when I have many C-files in project?

I have many C-files in the project. I would like to include inline assembly in some files so I do this step,
- I include assembly code between "#pragma asm" and "#pragma endasm"
- I include "#pragma src" on the top of that file.
when I compile, it said "Fatal Error L210: I/O Error on Input File"
"Exception 0021H: Path or File Not Found"
It has only 1 error. I try to use this step with the project that has only 1 C-file, it works. So I think it's because of many C-file.
One thing that I see is it tell me the same result even though I include only src directive(don't include any assembly code).
How should I do? Thank you very much for your suggestion. :)

Parents
  • "I compile, it said 'Fatal Error L210: I/O Error on Input File'"

    That's a Linker error - not a compiler error!

    "Exception 0021H: Path or File Not Found"

    It also tells you which file was not found - you should pay attention to that!

    Have you read and followed all the instructions about #pragma SRC from the Manual?

    Hint: What does the compiler generate when you use the SRC directive...?

Reply
  • "I compile, it said 'Fatal Error L210: I/O Error on Input File'"

    That's a Linker error - not a compiler error!

    "Exception 0021H: Path or File Not Found"

    It also tells you which file was not found - you should pay attention to that!

    Have you read and followed all the instructions about #pragma SRC from the Manual?

    Hint: What does the compiler generate when you use the SRC directive...?

Children
No data