Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

8051 linking

Options
  • 29-04-2005 11:42am
    #1
    Registered Users Posts: 17,574 ✭✭✭✭


    Im using keil uVision (microvision) to program an 8051 board. Is there any way of linking C and assembly for the 8051 instructions? Its not as easy as creating functions in assembly and calling them from C, like 80x86 programming. If there is a way of doing it, what should I look out for?


Comments

  • Registered Users Posts: 1,391 ✭✭✭fatherdougalmag


    Have you tried using inline assembly with your C code?


  • Registered Users Posts: 17,574 ✭✭✭✭Mr. CooL ICE


    Yes, that was the first thing that I tried and it gave me a ton of error messages (including something about SRC-control). I checked the Keil site and it didnt give examples of inline assembly, but it gave instructions on enabling SRC-control which didnt work for me.


Advertisement