本帖最后由 rxy429 于 2012-9-13 11:06 编辑
.equ FIR_LPNumTaps, 13
; ..............................................................................
; Allocate and initialize filter taps
.section .xdata
.align 32
FIR_LPTaps:
.hword 0x0435, 0x0698, 0x08EC, 0x0AFE, 0x0C9E, 0x0DA9, 0x0E04, 0x0DA9, 0x0C9E
.hword 0x0AFE, 0x08EC, 0x0698, 0x0435
; ..............................................................................
; Allocate delay line in (uninitialized) Y data space
.section .ybss, "b"
.align 32
FIR_LPDelay:
.space FIR_LPNumTaps*2
; ..............................................................................
; Allocate and intialize filter structure
.section .data
.global _FIR_LPFilter
_FIR_LPFilter:
.hword FIR_LPNumTaps
.hword FIR_LPTaps
.hword FIR_LPTaps+FIR_LPNumTaps*2-1
.hword 0xff00
.hword FIR_LPDelay
.hword FIR_LPDelay+FIR_LPNumTaps*2-1
.hword FIR_LPDelay
有谁能帮忙解释这段代码
求高手指教
前面部分是 13个是FIR滤波系数
后面部分不理解求高手帮忙
FIR_LPDelay:
.space FIR_LPNumTaps*2
; ..............................................................................
; Allocate and intialize filter structure
.section .data
.global _FIR_LPFilter
_FIR_LPFilter:
.hword FIR_LPNumTaps
.hword FIR_LPTaps
.hword FIR_LPTaps+FIR_LPNumTaps*2-1
.hword 0xff00
.hword FIR_LPDelay
.hword FIR_LPDelay+FIR_LPNumTaps*2-1
.hword FIR_LPDelay
到这部分就不理解了。。 |