Вы находитесь на странице: 1из 4

N5

: 4 .

:
. , .
.

1.

z- :

a0 + a1 z1 + ...+ am z s

W( z) =

Y ( z)
,
X ( z)

(5.1)
1+ b1 z + ...+ bn z
a0 ,...,am , b1 ,...,bn - , X(z), Y(z) - z-
.
() (5.1)
(. . . 1):
y[ m] =

k= 0

k= 1

ak x[m k] bk y[m k],

(5.2)

x[m-k], y[m-k] - , k .
(5.2)
(5.1), .
:
(5.2);
, .

a
b x[m]
y[m-1]
1
1.75
0.5


(X A R - 1 )
6
5
4
3
2
1

,
ai, bi .

ai, bi.

W( z)
:

( 1 = " -" , 0 = " + " )


(M A N )
MANS -2
M A N M -3
15 14 13 12 11 10 9
8
7
6
5
4
3

","
(1 = " " )
( 1 = " -" , 0 = " + " )

a z
a
Y ( z)
=
=

1
z b 1 b z
X ( z)
:
y[ m] = a x[ m] + b y[ m 1] ,
W( z) =

(5.3)
a, b -
;
x[m], y[m-1] - m

. 5 . 1
m-1 .
() . 5.1,
: XAR MAN (MANS, MANM
) :

:
1 2 MAN < 1.

2. . 2.

5.2
a, b

XAR

MANS

1.75
0.5

01h
00h

38 h
20h

MANM
00h
00h

, x[m] y[m-1] a, b
(5.3).
:
MUNUM , 2721 - 10Fh;
ADNUM , - 106Ah.
,
XAR1 (1880h) XAR2 (1883h).
:
OUABC (: 116Fh)- , HL
A, B C;
WRABC (: 1175h)- A, B, C HL.
, (5.3) a=1.75; b=0.5 (
), :
;
uabc
equ 116fh; OUABC
wrabc
equ 1175h; WRABC
xar2
equ 1883h; XAR2
xar1
equ 1880h; XAR1
adnum
equ 106Ah; ADNUM
munum
equ 10cfh; MUNUM
Timer
equ
0e0h; 0
TimerU
equ
0e3h; 58053
;
org 1a00h;
xm
ds
3h; x[m] (3 )
ym1
ds
3h; y[m+1] (3 )
ak ds
3; a (3 )
bk ds
3; b (3 )
s ds
3h; s (3 )
t ds
2h; t (2 )
;
org 1900h;
Nach1:
di;
mvi
a,30h;
out
TimerU;
mvi
a,0ffh; 0FFFFh
out
Timer;
out
Timer
; W(z)
lxi h,ak; a
call ouabc; A, B, C
lxi h,xar1; A, B, C
call wrabc; XAR1
lxi h,xm; x[m]
call ouabc; A, B, C
lxi h,xar2; A, B, C
call wrabc; XAR2
call munum; XAR2=XAR1*XAR2=a*x[m]
lxi h,xar2; XAR2
call ouabc; A, B, C
lxi h,s; A, B, C
call wrabc; s
lxi h,ym1; y[m-1]
call ouabc; A, B, C
lxi h,xar1; A, B, C
call wrabc; XAR1
lxi h,bk; b
call ouabc; A, B, C
lxi h,xar2; A, B, C
call wrabc; XAR2
call munum; XAR2=XAR1*XAR2=b*y[m-1]
lxi h,s; s=a*x[m]
call ouabc; A, B, C
lxi h,xar1; A, B, C
call wrabc; XAR1
call adnum; XAR2=XAR1+XAR2=a*x[m]+b*y[m-1]
lxi h,xar2; XAR2
call ouabc; A, B, C
lxi h,s; A, B, C

call wrabc; s=a*x[m]+b*y[m-1]


;
mvi a,0h;
out Timer;

Kon:
lxi
h,t; 2-
in
Timer;
mov
m,a; t (. )
in
Timer
inx
h
mov
m,a; t+1 (c. )
rst 0;
end

xm, ym1,ak, bk x[m],


y[m-1] a, b .
: , .
s .
3. .3. (5.2) ,
, :

y[ m] =

L 1

L 1

k=0

i=0

k= 1

i=0

x[m k] ak [i ] 2i y[m k] bk [i ] 2i

(5.4)

L - ; ak[i] bk[i] - i- ak
bk , 0 1.
: a=1.75; b=0.5, (5.3) (5.4)
:
y[m ] = x[m] 2 0 + 2 1 + 2 2 + y[m 1] 2 1 . (5.5)
a=1.5
b=0.5
, a x[m] : x[m] (
20=1 ) x[m], ( 2-1), x[m],
2 ( 2-2).. b y[m-1],
y[m-1],
( 2-1). , (5.5),
.

( )

;
uabc
equ 116fh; OUABC
wrabc
equ 1175h; WRABC
xar2
equ 1883h; XAR2
xar1
equ 1880h; XAR1
adnum
equ 106Ah; ADNUM
Timer
equ
0e0h; 0
TimerU
equ
0e3h; 58053
;
org 1a00h;
xm
ds
3h; x[m] (3 )
ym1
ds
3h; y[m+1] (3 )
s
ds
3h; s (3 )
t
ds
2h; t (2 )
;
org 1900h;
Nach1:
di;
mvi
a,30h;
out
TimerU;
mvi
a,0ffh; 0FFFFh
out
Timer;
out
Timer
; W(z)
lxi h,xm; x[m]
call ouabc; A, B, C
lxi h,xar2; A, B, C
call wrabc; XAR2
lxi h,xm; x[m]
call ouabc; A, B, C
lxi h,xar1; A, B, C

call wrabc; XAR1


call sdwig; XAR1 1
call adnum; XAR2=XAR2+XAR1=x[m]+x[m] 2-1
call sdwig; XAR1 2
call adnum; XAR2=XAR2+XAR1= x[m] 2-2 +x[m]+x[m] 2-1
lxi h,ym1; y[m-1]
call ouabc; A, B, C
lxi h,xar1; A, B, C
call wrabc; XAR1
call sdwig; XAR1 1
call adnum; XAR2=XAR1+XAR2= x[m] 2-2 +x[m]+x[m] 2-1+y[m-1] 2-1
lxi h,xar2; XAR2
call ouabc; A, B, C
lxi h,s; A, B, C
call wrabc; s
;
mvi a,0h;
out Timer;

Kon:
lxi
h,t; 2-
in
Timer;
mov
m,a; t (. )
in
Timer
inx
h
mov
m,a; t+1 (c. )
rst 0;
; XAR1
sdwig:
lxi h,XAR1+1; HL MANS
xra a; C=0
mov a,m; MANS A
ani 80h; MANS
mov b,a; B
mov a,m; MANS A
ani 7fh; MANS
rar; A 1
mov m,a; A MANS
inx h; HL MANM
mov a,m; MANM A
rar; A 1
mov m,a; A MANM
dcx
h; HL MANS
mov
a,m; MANS A
ora
b; B
mov
m,a; A MANS
ret; sdwig
end

4.
:
: ,
.

.

- ,
a b .