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

calling an assembler fonction from c program

I do my main program in c.
I want to call in this c program a fonction (procedure) in assembler.
How can I do this ?
with a #include <xxxx.a51> ?
how can I do a mix program with c and assembler procedure?

thanks for your answer.

Parents
  • sir erac

    it IS, unless you code assembler from scratch

    you is wrong you be know!!!!

    startup has line

                    LJMP    ?C_START
    

    this is be line to calll main

    remove ?C_START you no need main

    you caall can then

                    LJMP    any_asm_or_c_function_you_be_wanting
    

    i know you see i try and workk well

    you now want me send yo sample code to see?????

    i not want money from friend erac for code!!!!

Reply
  • sir erac

    it IS, unless you code assembler from scratch

    you is wrong you be know!!!!

    startup has line

                    LJMP    ?C_START
    

    this is be line to calll main

    remove ?C_START you no need main

    you caall can then

                    LJMP    any_asm_or_c_function_you_be_wanting
    

    i know you see i try and workk well

    you now want me send yo sample code to see?????

    i not want money from friend erac for code!!!!

Children