c54xx系列DSP汇编指令详解

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

11C54xxDSP2C54xxDSP1AAACCACCAAACCBBALUARARx07≤≤xARPST0ARASMST15-1615≤≤ASMBBBRAFST1BRCBITC40≤BITC≤15C16ST116/CST0CC203≤≤CCCMPTST1CPLST1cond[d][D]DABDDARDABdmad16065535≤≤dmaddmemDPST090511≤≤DPdstAB2Dstifdst=AthenDst=Bifdst=BthenDst=Adst_ifdst=Athendst_=Bifdst=Bthendst_=AEABEEAREABextpmad23FRCTST1Hhhi(A)A3216HMST1IFRINTMST1K9k33073≤≤kk55-16155≤≤kk9901159≤≤klk16Lmem32mmrMMRAR0AR7SPMMRxMMRyAR0AR7SPnXCn=12NRSBXSSBXXCN=0ST0N=1ST1OVAST0AOVBST0BOVdstABOVdst_ABOvsrcABOVMST1PA163PARPCpmad1665535≤≤pmadpmemPMSTprog[R]mdRCRTNRETF[D]REARSASBIT4RSBXSSBXXC0)15≤≤SBITSHFT40)15≤≤SHFTSHIFT5-16)15≤≤SHIFTSindSmem16SPSPCsrcST0ST1SXMST1TTCST0TOSTRNTST50-1631≤≤TSunsXFST1XPC4Xmem16Ymem162|||&^11===[x][x]xÆyxyxx|x|x0x*TMS320C54xxDSP1291ADDSUBMPYMACMASDADDDSUBABDSTFIRSSQDST23ADDSmem,srcsrc=src+SmemSmenADDSmem,TS,srcsrc=src+SmemTSSmenADDSmem,16,src[,dst]dst=src+Smem16Smen16ADDSmem[,SHIFT],src[,dst]dst=src+SmemSHIFTSmenSHIFTADDXmem,SHFT,srcsrc=src+XmemSHFTXmenSHIFTADDXmem,Ymem,dstdst=Xmem16+Ymem16XmenYmen165ADD#lk[,SHFT],src[,dst]dst=src+#lkSHFTSHFTsrcdstADD#lk,16,src[,dst]dst=src+#lk1616srcdstADDsrc[,SHIFT][,dst]dst=dst+srcSHIFTsrcSHIFTdstADDsrc,ASM[,dst]dst=dst+srcASMsrcASMdstADDCSmem,srcsrc=src+Smem+CSmenADDM#lk,SmemSmem=Smem+#lkADDSSmem,srcsrc=src+uns(Smem)SmenSUBSmem,srcsrc=src–SmemSmemSUBSmem,TS,srcsrc=src–SmemTSSmemTSSUBSmem,16,src[,dst]dst=src–Smem16Smem16SUBSmem[,SHIFT],src[,dst]dst=src–SmemSHIFTSmemSHIFTSUBXmem,SHFT,srcsrc=src–XmemSHFTXmemSHFTSUBXmem,Ymem,dstdst=Xmem16–Ymem16XmemYmem16SUB#lk[,SHFT],src[,dst]dst=src–#lkSHFTsrcSHFTdstSUB#lk,16,src[,dst]dst=src–#lk16src16dstSUBsrc[,SHIFT][,dst]dst=dst–srcSHIFTdstsrcSHIFTSUBsrc,ASM[,dst]dst=dst–srcASMdstsrcASMSUBBSmem,srcsrc=src–Smem–CSmemSUBCSmem,srcIf(src–Smem15)≥0src=(src–Smem15)1+1Elsesrc=src16SUBSSmem,srcsrc=src–uns(Smem)SmemMPYSmem,dstdst=T*SmemTSmenMPYRSmem,dstdst=rnd(T*Smem)TSmenMPYXmem,Ymem,dstdst=Xmem*Ymem,T=XmemXmenYmenXmenTMPYSmem,#lk,dstdst=Smem*#lkT=SmemSmemSmenTMPY#lk,dstdst=T*#lkTMPYAdstdst=T*A(3216)A16TMPYASmemB=Smem*A(3216)T=SmemA16SmemBSmenTMPYUSmem,dstdst=uns(T)*uns(Smem)TSmenSQURSmem,dstdst=Smem*SmemT=SmemSmenSmenTSQURA,dstdst=A(326)*A(3216)A16MACSmem,srcsrc=src+T*SmemTSmenMACXmem,Ymem,src[,dst]dst=src+Xmem*YmemT=XmemXmenYmenXmenTMAC#lk,src[,dst]dst=src+T*#lkTMACSmem,#lk,src[,dst]dst=src+Smem*#lkSmem7T=SmemSmenTMACRSmem,srcsrc=rnd(src+T*Smem)TSmenMACRXmem,Ymem,src[,dst]dst=rnd(src+Xmem*Ymem)T=XmemXmenYmenXmenTMACASmem[,B]B=B+Smem*A(3216)T=SmemA16SmenBSmenTMACAT,src[,dst]dst=src+T*A(3216)A16TMACARSmem[,B]B=rnd(B+Smem*A(3216))T=SmemA16SmenBSmenTMACART,src[,dst]dst=rnd(src+T*A(3216))A16TMACDSmem,pmad,srcsrc=src+Smem*pmadT=Smem(Smem+1)=SmemSmenPmadSmenTSmenMACPSmem,pmad,srcsrc=src+Smem*pmadT=SmemSmenPmadSmenTMACSUXmem,Ymem,srcsrc=src+uns(Xmem)*YmemT=XmemYmemXmemXmenTMASSmem,srcsrc=src–T*SmemTSmenMASRSmem,srcsrc=rnd(src–T*Smem)TSmenMASXmem,Ymem,src[,dst]dst=src–Xmem*YmemT=XmemXmemYmenXmenTMASRXmem,Ymem,src[,dst]dst=rnd(src–Xmem*Ymem)T=XmemXmemYmenXmenTMASASmem[,B]B=B–Smem*A(3216)BSmenA16Smen8T=SmemTMASAT,src[,dst]dst=src–T*A(3216)TA16MASART,src[,dst]dst=rnd(src–T*A(3216))TA16SQURASmem,srcsrc=src+Smem*SmemT=SmemSmenSmenTSQURSSmem,srcsrc=src–Smem*SmemT=SmemSmenSmenTDADDLmem,src[,dst]IfC16=0dst=Lmem+srcIfC16=1dst(3916)=Lmem(3116)+src(3116)dst(150)=Lmem(150)+src(150)Lmensrc16LmensrcDADSTLmem,dstIfC16=0dst=Lmem+(T16+T)IfC16=1dst(3916)=Lmem(3116)+Tdst(150)=Lmem(150)–TLmenT16LmenT1616LmenTDRSUBLmem,srcIfC16=0src=Lmem–srcIfC16=1src(3916)=Lmem(3116)–src(3116)src(150)=Lmem(150)–src(150)Lmensrc16LmensrcDSADTLmem,dstIfC16=0dst=Lmem–(T16+T)IfC16=1dst(3916)=Lmem(3116)–Tdst(150)=Lmem(150)+TLmenT1616LmenT16LmenTDSUBLmem,srcIfC16=0src=src–LmemIfC16=1src(3916)=src(3116)–Lmem(3116)src(150)=src(150)–Lmem(150)srcLmen16srcLmenDSUBTLmem,dstIfC16=0dst=Lmem–(T16+T)IfC16=1LmenT16LmenT9dst(3916)=Lmem(3116)–Tdst(150)=Lmem(150)–TABDSTXmem,YmemB=B+|A(32–16)|A=(Xmem–Ymem)16A16BXmemYmen16AABSsrc[,dst]dst=|src|CMPLsrc[,dst]dst=~srcDELAYSmem(Smem+1)=SmemEXPsrcT=numberofsignbits(src)FIRSXmem,Ymem,pmadB=B+A*pmadA=(Xmem+Ymem)16LMSXmem,YmemB=B+Xmem*YmemA=A+Xmem16+2^15MAXdstdst=max(A,B)MINdstdst=min(A,B)NEGsrc[,dst]dst=–srcNORMsrc[,dst]dst=srcTSdst=norm(src,TS)POLYSmemB=Smem16A=rnd(A(32–16)*T+B)RNDsrc[,dst]dst=src+215SATsrcsaturate(src)SQDSTXmem,YmemB=B+A(32–16)*A(32–16)A=(Xmem–Ymem)162ANDORXORROLBITF12ANDSmem,srcsrc=src&SmemSmemAND#lk[,SHFT],src[,dst]dst=src&#lkSHFTSHFT10AND#lk,16,src[,dst]dst=src&#lk1616ANDsrc[,SHIFT][,dst]dst=dst&srcSHIFTSHIFTANDM#lk,SmemSmem=Smem&#lkSmenORSmem,srcsrc=src|SmemSmemOR#lk[,SHFT],src[,dst]dst=src|#lkSHFTSHFTOR#lk,16,src[,dst]dst=src|#lk1616ORsrc[,SHIFT][,dst]dst=dst|srcSHIFTSHIFTORM#lk,SmemSmem=Smem|#lkSmenXORSmem,srcsrc=src^SmemSmemXOR#lk[,SHFT,],src[,dst]dst=src^#lkSHFTSHFTXOR#lk,16,src[,dst]dst=src^#lk1616XORsrc[,SHIFT][,dst]dst=dst^srcSHIFTSHIFTXORM#lk,SmemSmem=Smem^#lkSmenROLsrcROLTCsrcTCRORsrcSFTAsrc,SHIFT[,dst]dst=srcSHIFTSHIFTSFTCsrcifsrc(31)=src(30)thensrc=src1SFTLsrc,SHIF

1 / 98
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功