亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fir32_mac.s

?? freescale MAC DSP的算法庫(FFT
?? S
字號:
;*********************************************
;* Motorola Inc.
;* (c) Copyright 2001 Motorola Inc.
;* ALL RIGHTS RESERVED.
;*********************************************
;* FILE NAME: fir32.s
;*********************************************
;!! These functions are "hand coded" in assembler and
;!! the C source is used as comments for short and clear description.
;!! C code used only for more clear andestending what assembler code do, where it is possible.
	
//	.section .dspcode,4,c     ;-=Locate the code in the ".dspcode" section.=-
 .section .text       ;-=Locate the code in the ".text" section.=-

	.ALIGN	4
	.XDEF	_FIR32_MAC
;******************************************************
;* NAME: void FIR32(struct tFir32Struct* pFIR, Frac32* pX, Frac32* pY, unsigned int n)
;*
;* DESCRIPTION: Computes a Finite Impulse Response for a array of 32-bit fractional data values.
;******************************************************
;* Used registers:
;*	64(a7) a2	pFIR		- Pointer to a data structure containing private data for the fir filter
;*	68(a7) a5	pX		- Pointer to the input vector of n data elements
;*	72(a7) 	pY		- Pointer to the output vector of n data elements
;*	76(a7) d6	n		- Length of the input and output vectors
;*	d0		N		- Length of coefficients vector(N<=n)
;*	d1		i           - Counter for outer loop.
;*	d2		k           - Counter for inner loop.
;*	a0		pCurY		- Pointer to the current Y
;*	a1		pCurX		- Pointer to the current X
;*	a3		pCurCoef	- Pointer to the current coefficient
;*	a4		pCurHistory	- Pointer to the current element of history buffer
;*	a6		pFIR->pFirHistory - History buffer.
;*	acc		output            - Accumulator.
;******************************************************/
_FIR32_MAC:
;---=Saving values of used registers.=---
	lea	-60(a7),a7
	movem.l d0-d7/a0-a6,(a7)
;---=Moving of most useful parameters from stack to registers.=---
 	move.l		#0x00000030,MACSR
	move.l 76(a7),d6	      ;n                  - Length of the input and output arrays.
	move.l 72(a7),a0	      ;pCurY              - Pointer to the current Y.
	move.l 68(a7),a5	      ;pX                 - Pointer to the input array of n data elements.
	move.l 64(a7),a2	      ;pFIR               - Pointer to a data structure containing private data for the FIR filter.
	move.l 4(a2),d0	      ;N                  - Length of coefficients vector.
	move.l 8(a2),a6	      ;pFIR->pFirHistory  - History buffer.	
;---====== Begin of cycle of getting Y[1]..Y[N-1] ======---
	moveq	#1,d1             ; 	for(i=1;i<N;i++)      -=Begin of outer loop (number 1)=-
.FORi1:
	cmp.l	d0,d1             ;                           -=Comparing "i" with "N"
	bcc .NEXTi1             ; 	{                     -=If (i=>N) then jump to .NEXTi1=-
	move.l #0,acc           ; 	output=0;             -=Accumulator initialization=-
	lea (0,a5,d1.l*4),a1      ; 	pCurX=pX+i;           -=Current sample pointer initialization=-
	move.l (a2),a3          ; 	pCurCoef=pFIR->pFirCoef;  -=Current coefficient pointer initialization=-
;---== Begin of cycle Getting Y[i] ==---
	moveq	#0,d2             ; 	for(k=0;k<i;k++)      -=Begin of inner loop=-  
	move.l (a3)+,d4         ; 	{                     -=Getting current coefficient=-
.FORk1:
	move.l -(a1),d3         ;                           -=Getting next current sample=-
      ; We take only upper word
	mac.l	d3,d4,<<,(a3)+,d4 ;                       -=Next MAC and getting next current coefficient=-
	addq.l #1,d2            ;                           -=Incrementing "k"=-
	cmp.l	d1,d2             ;                           -=Comparing "k" with "i"=-
	bcs .FORk1              ;                           -=If (k<i) then jump to .FORk1=-
;---==Testing that History Buffer is filled => this is not first calling of this function==--
	tst.l	12(a2)            ; 	if(pFIR->iFirHistoryCount>0)        -=Testing that pFIR->iFirHistoryCount>0=-
	beq .NEXTif	            ; 	{                                   -=If (pFIR->iFirHistoryCount=0) then jump to .NEXTif=-
	lea (-4,a6,d0.l*4),a4     ; 	pCurHistory=pFIR->pFirHistory+N-2;
      ;--------------------------------------------
	move.l d1,d2            ; 	for(k=i;k<N;k++)                    -= k=i.Begin of inner loop=-
.FORk2:                       ; 	{
	move.l -(a4),d5         ;                                         -=Getting next current element of history buffer=-
      ; We take only upper word
	mac.l	d5,d4,<<,(a3)+,d4	; 	output+=*pCurHistory--*(*pCurCoef++) -=MAC and getting next current coefficient=-
	addq.l #1,d2            ;                                         -=Incrementing "k"=-
	cmp.l	d0,d2             ;                                         -=Comparing "k" with "N"=-
	bcs .FORk2              ;                                         -=If (k<N) then jump to .FORk2=-
.NEXTif:                      ;//if(pFIR->iFirHistoryCount>0)	
;---== End of cycle of getting Y[i] ==---
	move.l acc,d7           ; 	*pCurY++=output;                    -=Moving accumulator to general register=-
	move.l d7,(a0)+         ;                                         -=Store Y[i]=-

	addq.l #1,d1            ;i++                                      -=Incrementing "i"=-
	bra .FORi1              ;                                         -=Jumping to .FORi1=-
.NEXTi1:                      ; 		}//for(i)
;---====== End of cycle Y[1]..Y[N-1] ======---
;---====== Begin of cycle of getting Y[N]..Y[n] ======---
	move.l d0,d1            ; 	for(i=N;i<=n;i++)                   -=Begin of outer loop (number 2)=-
.FORi2:
	cmp.l	d6,d1             ;                                         -=Comparing "i" with "N"=-
	bhi .NEXTi2             ; 	{                                   -=If (i>n) then jump to .NEXTi2=-
	move.l #0,acc           ; 	output=0;                           -=Accumulator initialization=-
	lea (0,a5,d1.l*4),a1      ; 	pCurX=pX+i-1;                       -=Current sample pointer initialization=-
	move.l (a2),a3          ; 	pCurCoef=pFIR->pFirCoef;            -=Current coefficient pointer initialization=-
;---== Begin of cycle of getting Y[i] ==---
	moveq	#0,d2             ; 	for(k=0;k<N;k++)                    -=Begin of inner loop=-   
	move.l (a3)+,d4         ; 	{                                   -=Getting current coefficient=-
.FORk3:	
	move.l -(a1),d3         ; 	output+=*pCurX--*(*pCurCoef++);     -=Getting next current sample=-  
	mac.l	d3,d4,<<,(a3)+,d4   ;                                    -=MAC and getting next current coefficient=-
	addq.l #1,d2            ;                                         -=Incrementing "k"=-
	cmp.l	d0,d2             ;                                         -=Comparing "k" with "N"=-
	bcs .FORk3              ; 	}                                   -=If (k<N) then jump to .FORk3=-
;---== End of cycle of getting Y[i] ==---
	move.l acc,d7           ; 	*pCurY++=output;                    -=Moving accumulator to general register=-
	move.l d7,(a0)+         ;                                         -=Store Y[i]=-
	addq.l #1,d1            ;                                         -=Incrementing "i"=-
	bra .FORi2              ;                                         -=Jumping to .FORi2=-
.NEXTi2:                      ; }//for(i)
;---====== End of cycle Y[N]..Y[n] ======---
;---====== Begin of History Buffer Loading ======---
	move.l d6,d7            ; 	-=pCurX=pX+n-N+1;=-
	sub.l	d0,d7
	lea (4,a5,d7.l*4),a1
	move.l a6,a4            ; 	pCurHistory=pFIR->pFirHistory;
	moveq	#1,d1             ; 	for(i=1;i<N;i++)                   -= i=1 =-
.FORbuf:
	cmp.l	d0,d1             ;                                        -=Comparing "i" with "N"=-
	bcc .ENDbuf	            ; 	{                                  -=If (i=>N) then jump to .ENDbuf=-
	move.l (a1)+,(a4)+      ; 	*pCurHistory++=*pCurX++;
	addq.l #1,d1            ;                                        -=Incrementing "i"=-
	bra .FORbuf             ;                                        -=Jumping to .FORbuf=-
.ENDbuf:                      ; 	}
	subq.l #1,d1            ; 	pFIR->iFirHistoryCount=N-1;
	move.l d1,12(a2)        ; 	}//end                             -=setting pFIR->iFirHistoryCount by N-1 =-
;---====== End of History Buffer Loading ======---
;-=Restoring values of used registers=-
	movem.l (a7),d0-d7/a0-a6
	lea 60(a7),a7

	rts

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品成人免费在线| 欧美日韩国产天堂| 国产视频在线观看一区二区三区| 免费美女久久99| 精品福利一区二区三区免费视频| 国产一区欧美日韩| 国产精品毛片大码女人| 972aa.com艺术欧美| 亚洲精品久久久久久国产精华液| 色综合一区二区| 亚洲不卡在线观看| 91精品国产福利在线观看| 久久国产精品色婷婷| 精品国内二区三区| www.亚洲色图.com| 亚洲成人动漫在线免费观看| 欧美一二三区在线| 国产成+人+日韩+欧美+亚洲| 中文字幕日本不卡| 在线精品观看国产| 经典三级视频一区| 久久久www成人免费毛片麻豆| 99久久99久久综合| 视频一区二区不卡| 久久精品欧美日韩精品 | 欧美日韩国产成人在线91| 免费成人av在线播放| 国产偷v国产偷v亚洲高清| av网站一区二区三区| 日精品一区二区| 中文字幕第一区综合| 在线不卡一区二区| jlzzjlzz欧美大全| 免费观看30秒视频久久| 国产精品国产三级国产普通话三级| 欧美体内she精高潮| 久久国产欧美日韩精品| 一区二区三区av电影| 精品对白一区国产伦| 欧美性生活影院| 丁香婷婷深情五月亚洲| 婷婷一区二区三区| 国产精品美女久久久久aⅴ国产馆| 91精品婷婷国产综合久久| 成人精品鲁一区一区二区| 午夜精品在线看| 亚洲色图视频网| 欧美不卡激情三级在线观看| 91视频观看视频| 国内精品国产成人国产三级粉色| 国产精品理伦片| 日韩成人免费电影| 国产亚洲欧美在线| 欧美日韩一区二区三区不卡| 国产东北露脸精品视频| 日本免费在线视频不卡一不卡二| 中文字幕日韩av资源站| 久久亚洲免费视频| 欧美日本不卡视频| 91久久奴性调教| aaa欧美色吧激情视频| 国产精品自拍网站| 乱一区二区av| 日韩av不卡在线观看| 亚洲国产乱码最新视频 | 色婷婷av一区二区三区大白胸| 国产一区二区三区美女| 免费在线观看一区二区三区| 亚洲综合图片区| 亚洲人精品午夜| 国产精品伦理一区二区| 国产欧美视频一区二区三区| 久久久久国色av免费看影院| 亚洲精品一区二区三区在线观看| 91精品综合久久久久久| 在线成人小视频| 欧美一区二区三区四区视频| 欧美一区午夜精品| 欧美高清激情brazzers| 欧美人伦禁忌dvd放荡欲情| 欧美视频第二页| 欧美丰满嫩嫩电影| 欧美一区二区三区视频在线观看| 日韩一区二区三区av| 91精品久久久久久久91蜜桃| 91麻豆精品国产91久久久使用方法| 91精品国产日韩91久久久久久| 欧美精品777| 欧美一级一区二区| 欧美xxxxx牲另类人与| 久久中文字幕电影| 亚洲国产精品二十页| 中文字幕一区二区三区色视频| 中文字幕五月欧美| 亚洲宅男天堂在线观看无病毒| 亚洲黄色av一区| 日韩激情视频在线观看| 看片网站欧美日韩| 成人亚洲一区二区一| 色综合欧美在线| 欧美精品第一页| 久久久91精品国产一区二区三区| 中文字幕不卡三区| 亚洲美女屁股眼交| 日本中文字幕一区| 国产精品夜夜嗨| 欧美在线小视频| 精品久久久久一区| 中文字幕一区二区三区视频| 婷婷六月综合亚洲| 国产一区二区三区国产| www.成人网.com| 欧美疯狂做受xxxx富婆| 久久精品人人做人人综合 | 久久久不卡网国产精品二区| 亚洲激情av在线| 美女在线观看视频一区二区| 成人激情免费电影网址| 欧美美女一区二区在线观看| 国产婷婷色一区二区三区四区| 一区二区三区中文字幕| 国内久久精品视频| 99re在线精品| 精品美女一区二区| 亚洲最快最全在线视频| 黄一区二区三区| 在线精品视频免费观看| 久久精品一区八戒影视| 亚洲福利视频导航| 成人国产精品免费观看动漫| 日韩一区二区三区视频在线 | 亚洲最新视频在线播放| 国产成人av一区| 91精品国产综合久久婷婷香蕉| 国产精品嫩草久久久久| 精品一区二区免费看| 欧美性videosxxxxx| 国产精品美女久久久久久久久| 久久国产剧场电影| 欧美精品在欧美一区二区少妇| 综合色中文字幕| 国产精品一区二区久久不卡 | 精品国产乱码久久久久久久| 亚洲国产一区二区a毛片| 成人18视频日本| 久久久亚洲欧洲日产国码αv| 日韩av一区二区在线影视| 欧美色视频在线观看| ...xxx性欧美| 成人激情图片网| 中文字幕国产一区| 国产精品996| 337p日本欧洲亚洲大胆精品| 图片区小说区国产精品视频 | 欧美乱熟臀69xxxxxx| 中文字幕五月欧美| 99久久99久久精品国产片果冻 | 免费成人深夜小野草| 欧美另类高清zo欧美| 亚洲一二三四区| 色婷婷国产精品综合在线观看| 国产精品成人免费精品自在线观看| 国产凹凸在线观看一区二区| 久久蜜桃av一区精品变态类天堂 | 亚洲伊人色欲综合网| 91网上在线视频| 综合av第一页| 91小视频在线免费看| 亚洲免费观看在线视频| 91蜜桃视频在线| 亚洲精品日韩一| 色综合久久久久综合体桃花网| 亚洲精品亚洲人成人网| 色吊一区二区三区| 亚洲一区二区三区四区的| 日本高清成人免费播放| 亚洲国产成人精品视频| 欧美日韩精品欧美日韩精品一综合| 亚洲图片欧美一区| 51精品国自产在线| 蜜臀av一区二区在线观看| 欧美不卡视频一区| 国产aⅴ综合色| 亚洲视频一区在线| 欧美无砖砖区免费| 手机精品视频在线观看| 欧美电视剧免费观看| 狠狠色丁香久久婷婷综| 亚洲国产电影在线观看| 99久久精品免费| 亚洲国产精品一区二区久久| 91精品国产欧美一区二区18 | 成人av网址在线观看| 自拍偷拍欧美精品| 欧美三级视频在线播放| 日本一区中文字幕| 国产精品国产三级国产三级人妇| 欧美亚日韩国产aⅴ精品中极品| 美国欧美日韩国产在线播放| 欧美经典一区二区|