HI:
I want to know how to write the assembler in S32. The chip i use is MCP5744P.
Thanks!
Hello,
as a quick interview you can use thread below.
https://community.nxp.com/message/830899?commentID=830899#comment-830899
If you have any other questions, please feel free to write me back.
Regards,
Martin
Hi,
I would like to achieve the following procedure:
int main()
{
signed short n1 = 1;
signed short n2 = 2;
asm("mfmsr %r1": "=kregs"(n1));
asm("mfmsr %r2": "=kregs"(n2));
asm("e_add %r1, %r2");
asm("mfmsr %r1": "=kregs"(n1));
return 0;
}
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?
Thanks!