FILTER5:
CLR A
MOV R3,A
MOV R4,A
MOV R7,N
MOV R2,ADDPH
MOV R1,ADDPL
MOV DPTR,#QAVTAB
QAVFT1:
MOVC A,@A+DPTR
MOV B,A
MOVX A,@R1
INC DPTR
INC R1
MUL AB
ADD A,R4
MOV R4,A
MOV A,B
ADDC A,R3
MOV R3,A
DJNZ R7,QAVFT1
MOV A,R4
JNB ACC.7,QAVFT2
INC R3
QAVFT2:
MOV A,R3
RET
QAVTAB:
DB