5744p assembly issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

5744p assembly issue

1,638 次查看
wenchaohu
Contributor I

I want to use an integer pointer variable to keep the address of GPR r1 in S32DS with MPC5744P,please give me some suggestions,thank you!

 

the text below are my codes,and it can not work right in debug mode.

unsigned int *stk_temp;

……

PPCASM("e_lis %r3,stk_temp@h");

PPCASM("e_ori %r3,%r3,stk_temp@l");

PPCASM("e_stw %r1,0x0(%r3)");

标签 (1)
标记 (5)
0 项奖励
回复
1 回复

1,451 次查看
stanish
NXP Employee
NXP Employee

Hi,

what about this:

PPCASM("e_stw %r1, %0" :"=m"(*stk_temp));‍

Stan

0 项奖励
回复