How to write assembler in S32 Design Studio

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write assembler in S32 Design Studio

406 Views
Contributor I

HI:

  I want to know how  to write the assembler in S32. The chip i use is MCP5744P.

Thanks!

Labels (1)
0 Kudos
2 Replies

3 Views
NXP Employee
NXP Employee

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

0 Kudos

3 Views
Contributor I

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!

0 Kudos