I want to know how to write the assembler in S32. The chip i use is MCP5744P.
as a quick interview you can use thread below.
If you have any other questions, please feel free to write me back.
I would like to achieve the following procedure:
signed short n1 = 1;
signed short n2 = 2;
asm("mfmsr %r1": "=kregs"(n1));
asm("mfmsr %r2": "=kregs"(n2));
asm("e_add %r1, %r2");
I want n1 to be equal to 3,but the result is not right.Can you help me find out what's wrong with my code?
Retrieving data ...