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

Assembly example for programming ARM Cortex-M4

I am using a CORTEX-M4 micro controller board. Could you send me an Assembly example for programming the board?

Parents Reply Children
  • No problem; it's a pleasure to be able to help an assembly-programmer getting started.

    You can look forward to programming the Cortex-M4, there are many nice features to explore and benefit from.

    Many instructions only use a single clock-cycle, where they use two or more on a Cortex-M3.

    That means if you use a large block (or loop), your code might become 3 times as fast per clock-cycle.

    In addition to the above, the Cortex-M4 also have "DSP instructions", which can also save a lot of clock cycles, compared to when you had to use a different approach on the Cortex-M3.

    The Freescale implementations have some extra hardware features, which you can benefit from using (especially the BME, Bit Manipulation Engine).