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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fir16_mac.s

?? freescale MAC DSP的算法庫(FFT
?? S
字號:
;*********************************************
;* Freescale Semiconductor Inc.
;* (c) Copyright 2001 Freescale Semiconductor Inc.
;* ALL RIGHTS RESERVED.
;*********************************************
;* FILE NAME: fir16.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	_FIR16_MAC
;******************************************************
;* NAME: void FIR16(struct tFir16Struct* pFIR, Frac16* pX, Frac16* pY, unsigned int n)
;*
;* DESCRIPTION: Computes a Finite Impulse Response for a array of 16-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 array of n data elements.
;*	72(a7) 	pY		  - Pointer to the output array of n data elements.
;*	76(a7) d6	n		  - Length of the input and output arrays.
;*	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.
;******************************************************
_FIR16_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 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*2),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             ;       k=0              -=Begin of inner loop=-  	
	btst	#0,d1             ;                        -=Testing that "i" is even or not=-
	beq .EVENk1	            ;     	             -=If "i" is even then jump to .EVENk1=-
 	;-=we do this omly in case of "i" is odd number=-
	move.w (a3)+,d4         ;                        -=Getting current coefficient=-
	move.w -(a1),d3         ;                        -=Getting current sample=-
	mac.w	d3.l,d4.l,<<	;                        -=Getting first iteration of inner loop=- 	
	addq.l #1,d2            ;                        -=Incrementing  "k"=-
.EVENk1:	
	move.l (a3)+,d4         ;                        -=Getting next current coefficient=-
.FORk1:				;       for(k=0;k<i;k++) -=Begin of main part of inner loop=-
	cmp.l	d1,d2             ;       {                -=Comparing "k" with "i"=-
	bcc .ENDFORk1           ;                        -=If (k=>i) then jump to .ENDFORk1=-
	;-=In one program loop we do two MAC operation = 2 FIR inner loop itteration;
	;  use move long, parallel filling register,
	;  predecriment and post increment and use left shifting to get fractional multiplication=-
	;-=output+=*pCurX--*(*pCurCoef++)=-
	move.l -(a1),d3         ; 	                   -=Getting next current sample=-	
	mac.w d3.u,d4.l,<<      ;                        -=First MAC=-
	mac.w d3.l,d4.u,<<,(a3)+,d4 ;                    -=Second MAC and getting next current coefficient=-
	addq.l #2,d2            ;                        -=Incrementing "k" by 2=-
	bra .FORk1              ; 	}                  -=Jumping to .FORk1=-
.ENDFORk1:
	subq.l #4,a3             ;                        -=Restoring pointer to the current coefficient=
;---==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 (-2,a6,d0.l*2),a4     ; 	pCurHistory=pFIR->pFirHistory+N-2;
	move.l d1,d2            ; 				 -= k=i.Begin of inner loop=-
	move.l d0,d7
	sub.l	d1,d7
	btst #0,d7              ;                                          -=Testing that "N-i" is even or not=-
	beq .EVENk2	            ;                                          -=If "N-i" is even then jump to .EVENk2=-
	;-=we do this omly in case of "N-i" is odd number=-
	move.w (a3)+,d4         ;                                          -=Getting current coefficient=-
	move.w -(a4),d5         ;                                          -=Getting current element of history buffer=-
	mac.w	d5.l,d4.l,<<      ;                                          -=Getting next(first) iteration of inner loop=-
	addq.l #1,d2            ;                                          -=Incrementing  "k"=-
.EVENk2:	
	move.l (a3)+,d4         ;                                          -=Getting next current coefficient=-
.FORk2:                       ;	for(k=i;k<N;k++)		             -=Begin of main part (2) of inner loop=-
	cmp.l	d0,d2             ;                                          -=Comparing "k" with "N"=-
	bcc .NEXTif             ; 	{                                    -=If (k=>N) then jump to .NEXTif=-
	;-=In one program loop we do two MAC operation = 2 FIR inner loop itteration;
	;  use move long, parallel filling register,
	;  predecriment and post increment and use left shifting to get fractional multiplication=-
	;-=output+=*pCurHistory--*(*pCurCoef++)=-
	move.l -(a4),d5         ;                                          -=Getting next current element of history buffer=-
	mac.w d5.u,d4.l,<<      ;                                          -=First MAC=-
	mac.w d5.l,d4.u,<<,(a3)+,d4;                                       -=Second MAC and getting next current coefficient=-
	addq.l #2,d2            ;                                          -=Incrementing "k" by 2=-
	bra .FORk2              ; 	}                                    -=Jumping to .FORk2=-

.NEXTif:                      ; }//iFirHistoryCount>0		
;---== End of cycle of getting Y[i] ==---
	move.l acc,d7           ; 	*pCurY++=output;		             -=Moving accumulator to general register=-
	;-=we need to transfer only upper word=-
	swap d7                 ;                                          -=Aligning most significant 16 bits of acc=-
 	move.w 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*2),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             ;	k=0                                  -=Begin of inner loop=-   	
	btst	#0,d0             ;                                          -=Testing that "N" is even or not=-
	beq .EVENk3             ;                                          -=If "N" is even then jump to .EVENk3=-
	;-=we do this omly in case of "N" is odd number=-
	move.w (a3)+,d4         ;                                          -=Getting current coefficient=-
	move.w -(a1),d3         ;                                          -=Getting current sample=-
	mac.w	d3.l,d4.l,<<      ;                                          -=Getting first iteration of inner loop=-
	addq.l #1,d2            ;                                          -=Incrementing  "k"=-
.EVENk3:	
	move.l	(a3)+,d4    ;                                          -=Getting next current coefficient=-
.FORk3:                       ;	for(k=0;k<N;k++)                     -=Begin of main part of inner loop=-
	cmp.l	d0,d2             ; 	{                                    -=Comparing "k" with "N"=-
	bcc .ENDFORk3           ;                                          -=If (k=>N) then jump to .ENDFORk3=-
	;-=In one program loop we do two MAC operation = 2 FIR inner loop itteration;
	;  use move long, parallel filling register,
	;  predecriment and post increment and use left shifting to get fractional multiplication=-
        ;-=output+=*pCurX--*(*pCurCoef++);=-
	move.l -(a1),d3         ; 	                                     -=Getting next current sample=-
	mac.w d3.u,d4.l,<<      ;                                          -=First MAC=-
	mac.w d3.l,d4.u,<<,(a3)+,d4;                                       -=Second MAC and getting next current coefficient=-
	addq.l #2,d2            ;                                          -=Incrementing "k" by 2=-
	bra .FORk3              ; 	}                                    -=Jumping to .FORk1=-
.ENDFORk3:
;---== End of cycle of getting Y[i] ==---
	move.l acc,d7           ; 	*pCurY++=output;                     -=Moving accumulator to general register=-
	;-=we need to transfer only upper word=-
	swap d7                 ;                                          -=Aligning most significant 16 bits of acc=-
	move.w d7,(a0)+         ;                                          -=Store Y[i]=-
	addq.l #1,d1            ;	i++                                  -=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 (2,a5,d7.l*2),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.w (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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人高清视频在线观看| 男人的天堂久久精品| 日本一区二区三区高清不卡 | 色综合久久久久久久久久久| 久久精品国产精品亚洲综合| 蜜臂av日日欢夜夜爽一区| 国产sm精品调教视频网站| 91麻豆swag| 国产.欧美.日韩| 狠狠色丁香久久婷婷综合_中| 亚洲第一综合色| 91精品国产入口在线| 国产成人av在线影院| 精品一区二区三区免费观看| 日韩av中文字幕一区二区| 蜜臀久久99精品久久久久久9| 午夜亚洲福利老司机| 青青草97国产精品免费观看无弹窗版| 国产酒店精品激情| 色婷婷精品久久二区二区蜜臂av| 欧美一区二区精品久久911| 日韩女优av电影在线观看| 国产日本亚洲高清| 久久综合九色综合97_久久久| 久久久九九九九| 亚洲综合色在线| 久久99国产精品尤物| 欧美丝袜自拍制服另类| 国产欧美日韩三级| 成人手机在线视频| 国产在线日韩欧美| 99久久久久久99| 欧美日韩国产综合草草| 欧美大片顶级少妇| 国产精品伦理在线| 免费观看日韩av| 不卡av在线网| 亚洲精品网站在线观看| 色综合色综合色综合| 偷窥少妇高潮呻吟av久久免费| 欧美三级电影网| 亚洲精品国产视频| 首页国产欧美日韩丝袜| 欧美日韩国产欧美日美国产精品| 亚洲欧洲另类国产综合| 亚洲青青青在线视频| 国产精品久久久久久一区二区三区| 日本一区二区综合亚洲| 久久女同精品一区二区| 亚洲精品福利视频网站| 国产盗摄女厕一区二区三区| 东方欧美亚洲色图在线| 久久综合久久久久88| 日韩高清欧美激情| 日韩欧美你懂的| 欧美日韩国产成人在线免费| 无码av免费一区二区三区试看 | 日本中文字幕一区二区有限公司| 精品久久久久久久久久久久久久久久久| 久久99精品久久久久婷婷| 婷婷久久综合九色国产成人| 久久久不卡影院| 欧美婷婷六月丁香综合色| 国产综合色视频| 亚洲国产一区二区视频| 国产喷白浆一区二区三区| 欧美三级日本三级少妇99| 蜜桃视频一区二区| 亚洲欧美一区二区三区孕妇| 亚洲精品一线二线三线 | 日本v片在线高清不卡在线观看| 日本一区二区三级电影在线观看| 日韩午夜激情av| 国产精品欧美综合在线| wwwwww.欧美系列| xnxx国产精品| 久久久久久久久蜜桃| 精品美女在线观看| 日韩一区二区三区在线观看| 7777精品伊人久久久大香线蕉最新版 | 亚洲一区二区三区免费视频| 日韩毛片视频在线看| 欧美激情综合五月色丁香小说| 26uuu久久综合| 久久亚洲欧美国产精品乐播| 亚洲精品一区在线观看| 国产性做久久久久久| 中文字幕第一区第二区| 国产精品区一区二区三区| 自拍偷拍国产精品| 亚洲成在人线在线播放| 日韩精品一二三区| 狠狠色丁香婷婷综合久久片| 成人一区在线观看| 91亚洲精品乱码久久久久久蜜桃| 欧美伊人精品成人久久综合97| 欧美精品第1页| 精品福利av导航| 亚洲视频1区2区| 日韩av一级片| 成人在线综合网| 91国产丝袜在线播放| 欧美日韩精品一区二区天天拍小说 | 国产精品成人网| 亚洲综合一区二区三区| 日韩和的一区二区| 国产电影一区在线| 欧美亚洲国产一区二区三区va| 69p69国产精品| 久久―日本道色综合久久| 综合久久国产九一剧情麻豆| 亚洲成人7777| 国产在线视频一区二区三区| 91天堂素人约啪| 欧美va亚洲va香蕉在线| 一区二区中文视频| 琪琪久久久久日韩精品| 成人免费va视频| 日韩一区二区在线观看视频| 国产精品网友自拍| 日韩精品国产精品| 99久久国产免费看| 日韩网站在线看片你懂的| 亚洲色图欧美偷拍| 日本美女一区二区| 99re热这里只有精品视频| 日韩亚洲欧美成人一区| 亚洲同性同志一二三专区| 久久精品国产澳门| 欧美少妇一区二区| 国产精品沙发午睡系列990531| 日韩国产成人精品| 在线视频一区二区三| 欧美高清在线一区| 美洲天堂一区二卡三卡四卡视频| 日本精品免费观看高清观看| 国产天堂亚洲国产碰碰| 美脚の诱脚舐め脚责91 | 亚洲一区免费观看| 国产成人在线电影| 欧美一级高清片| 亚洲国产精品久久不卡毛片| 91最新地址在线播放| 国产亚洲制服色| 麻豆精品精品国产自在97香蕉 | 在线播放中文字幕一区| 亚洲男人的天堂在线aⅴ视频| 国产99精品国产| 久久久久久久一区| 精久久久久久久久久久| 欧美丰满少妇xxxbbb| 亚洲五月六月丁香激情| 色一区在线观看| 亚洲欧洲制服丝袜| 91玉足脚交白嫩脚丫在线播放| 欧美国产精品v| 大胆亚洲人体视频| 久久精子c满五个校花| 国产一区二区美女诱惑| 欧美精品一区二区三区一线天视频 | 久久精品人人做人人爽人人| 国产一区二区在线免费观看| 久久影院午夜论| 黄色小说综合网站| 精品盗摄一区二区三区| 韩国女主播一区| 国产欧美一区二区三区在线看蜜臀| 国产一区二区三区国产| 国产女人aaa级久久久级 | 国产精品白丝jk黑袜喷水| 久久久久久久久久久久电影| 韩国三级在线一区| 久久久久国产精品免费免费搜索| 国产高清视频一区| 中文字幕一区二区三区乱码在线| 91视频国产观看| 午夜电影一区二区三区| 日韩欧美在线影院| 韩国av一区二区三区四区| 国产日产欧美精品一区二区三区| 成人av电影观看| 亚洲综合免费观看高清在线观看| 欧美日韩视频在线第一区| 蜜臀91精品一区二区三区 | 一本色道久久综合亚洲91 | 欧美aaa在线| 欧美国产日韩精品免费观看| eeuss鲁片一区二区三区在线看| 亚洲精品成a人| 91精品国产综合久久久蜜臀粉嫩| 日韩一区欧美二区| 国产亚洲福利社区一区| 色成年激情久久综合| 天堂一区二区在线| 国产亚洲va综合人人澡精品| 色婷婷综合久久| 老色鬼精品视频在线观看播放| 国产精品日韩成人| 91精品国产综合久久精品麻豆| 国产精品99久久久久久似苏梦涵 |