Inline assembler

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

Inline assembler

325 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shiggy on Fri Feb 21 19:59:17 MST 2014
Hi All!

I am making the asm code on LPCXresso.
The following is a portion of start.
Q1) Is the save of PSR necessay?
//==========================================================================
__asm volatile(//sin_sweep(){
" push.W {r0-r12}\n"
" LDR.W  R10, =HWK\n"
" LDMIA.W R10,{R0-R9}  \n"//R9-->R7
//====================================位相更新: PHASE2(R4),PHASE1(R5),PHASE0(R6)の更新
" ADDS.W R4,R4,R0      \n"//PHASE2(R4)+=FRQ2(R0)
" ADCS.W R5,R5,R1      \n"//PHASE1(R5)+=FRQ1(R1)
" ADC.W R6,R6,R2      \n"//PHASE0(R6)+=FRQ0(R2)+C
//====================================周波数更新: FRQ1(R0),FRQ1(R1),FRQ0(R2)をA1(R3)で更新*****

If anyone give me a comment, I am very happy.

Shiggy
0 项奖励
回复
0 回复数