We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
it seems that i made a mistake, while posting the message. I can't read the answers. So lets have another try! How can i combine assembler files and C code. How do i hand over the paramters in a function call? How must the function declaration look like in the headerfile? For example: application written in C that calls for example an I2C routine, that reads from an I2C ROM written in assembler. thanks for answer, Markus Kammersberger
In the manual, there is a section titled "Interfacing C to Assembler" (or similar) - you need to read it! The manual also describes the parameter-passing and return value mechanisms used by C51 - your assembler must follow the same rules! The simplest way is to create a "skeleton" in C51, examine the generated assembler, then put in your required functionality