Part Number: MSP432P401R
Hello everyone,
I found out my code was slow at a certain section and wanted to write it in assembly because I have an idea how to do it and it would be faster.
The thing is, I can't find any tutorials about ASM on MSP432.
I found a tutorial about mixing ASM and C for the MSP430 but it uses a different processor architecture(RISK) and this one is ARM.
I also found the instruction set for the ARM and I generated ASM files in CCS so I could analyse the code.
These are the questions that are bothering me:
1) Where can I find good instruction how to use inline ASM? How to define input and output for inline and so on...?
2) Is there anyone or any tutorial for Mixing ASM and C. For example writing one function in ASM and calling it from C.
Could someone take a little time and make an example and make a program which adds 2 numbers and an ASM function that gets 2 numbers through parameters and returns the result?
An example like this would mean the world to me because that is all I need to start writing my own functions. I have a lot of experience with ASM but not much with mixing C and ASM.
3) In the ASM generated by CCS there are some A1-A4 registers they use and I guess they are accumulators but why can't I find anything in the file for ARM Cortex M4. I only found register r0-r12 I think.
What are A1-A4 and why can't I find them?
Thanks in advanced.