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

MCB2100 and assembly program

Anyone can let me know where I can find assembly program for all the basic interface on MCB 2100 evaluation board.

Parents
  • Shivaram,
    be careful: there are very serious limitations on what inline assembly can do with the RealView compiler. refer to your assembler documentation for further information. what you can and should do is use the __asm declaration before a function itself. this makes the function an embedded assembly function, that is 100% assembly without any limitation almost and still called like a normal C function.
    you can also experiment with pure assembly modules.
    but why are you so obsessed with assembly rather than writing in C? you can force thumb opcodes using the right pragma:

    #pragma thumb
    

    (I think).
    if I were you - I'd write it all in C. if you need something "exotic" - like saving the context of the processor - assembly is indeed what you'd want. keep it simple, efficient and functional.

Reply
  • Shivaram,
    be careful: there are very serious limitations on what inline assembly can do with the RealView compiler. refer to your assembler documentation for further information. what you can and should do is use the __asm declaration before a function itself. this makes the function an embedded assembly function, that is 100% assembly without any limitation almost and still called like a normal C function.
    you can also experiment with pure assembly modules.
    but why are you so obsessed with assembly rather than writing in C? you can force thumb opcodes using the right pragma:

    #pragma thumb
    

    (I think).
    if I were you - I'd write it all in C. if you need something "exotic" - like saving the context of the processor - assembly is indeed what you'd want. keep it simple, efficient and functional.

Children
No data