3-  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [ 42 ] 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

9

. 9.U 010.

NEWA= AAPEC+(KWGT-16),

NEWA = 0100+(19io-16,),

NEWA=0100+0003,

NEWA = 0103.

, 0103 010, JMP CENTY (), JMP CLRAM (010). , KWGT=17io. NEWA=0101i6, . . , 3- , . , , , JMP 3 , 1 , . JMP , . JMP -. .

: NEWA = +(KWGT-16) .

. KWGT=10,o. OlOOie, . 9.11. :

NEWA = AAPEC+(KWGT-16) ,

NEWA=0100i6+(19io-16io) ,

NEWA=0100i6+(3ioX3io).

NEWA=0109io.

. 9.11 , 0109 KWGT=19. . 9.12 - 8085. . 9.13.

9.5.

, , .

, KEY INPUT . , .

255

, . 0000-, . , . .

(0000-03FF) , . , . .

, . - . 9.14.

. 9.14 , , (). . , , 2, , . OTo6pia- . 2 .

, , 8085. - . , , -, .

- . 9.14 , . , 0000 1400i6. . 9.1. , 103i6, 1400i6-j-0103i6= 1503. , , , .



~

3-

3- .

(AIN2 + 1400) =


S g m

2-

/-

1

. 9.14. - )

.

2 . 4 . 9.14.

. , . 2 ( 8) , . (2) .

-F ( 9), 2 . , ( 10), . - , -

7

9 ) 1 1 I I ) 14

1 > 17

) 1)

.ij .1

)

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0002 0004 0005 0007 0009 0009 0009 OO0F 0014 0014 0014 0017 001 00 ID IJ020 0021 00 22 OU23 UO24 002 6 J029 0020

** * ♦ ♦ * * * * * * ♦ ♦ ♦ )(.

* ADD.se.

* ,

*

* ,

A3

D3 F2 AF

D3 Fl D3 FO

CD 04 C2 00 D3 FO 32 BF 00

CD C3 00

02 00

32 BF 00

BE 00

E6 FO 32 CI 00 BF 00 21 CI 00

ADDSE

ORG 00

MVI .

OUT 0F2H

XFA a

OUT OFIH

OUT OFOH

CALL KDET LDA KWGHT OUT OFOH STA AIN1

CALL

KDET KWGHT AIN2 AINl

OFOH AIN4 AIN2 H,AIN4

.

=

10=0 1101 1

4 4 . . = 4 . H,L AIN4

1. 9.15. - . 9.14

8085.



36 37 38 39 40 41 42 43 44 45 46 47 48 49

00 2F 6 00 30- D3 0032 00 32

00 32 CD 00

00 35 00

32 00 ? 00 17 17 17 17

32

00 F1

bf 00

D3

00 38 00 00 3S

0040 0041 00 42 S6 00 44 21 00 47 0048 04 004D 00 4D 004D AF 00 4 D3 00 50 00 50 00 50 00 53 00 55 00 55 00 55 00 55 0055 0055 00 58 00 5 00 50 00 5F 0060 0061 006 2 0062 006 2 006 3 006 5 0065 006 5 006 5 006 5

0065 £5

0066 CD 00 006 9 02 00 0060 FE 1 1 00 6 F OA 9 00 00 71 FE 10

00 73 00 76 00 76 00 76 00 76

00 76 CD 00 00 79 02 00 007 32 1 007F D3 0081 CD 00

00 84 2 00

00 87

OUT

OALI,

lda kwght

sta ain3

lda ain2

ain ofoh lxi h,ain3 U out 0F1H sta ain2

A

out ofoh

lda ain1 out 0p2h

. . AIN4

=

4

4

). xx-xx ain2

1=-00

=) . -

=ain2 . >[=11

21 00 14 00 5f

00

57 5 19

7 D3

NRED

LXI ,1400 LDA AIN2 nv E ,A LDA AIN1 inv D,A PUSH D DAD D

Unw A.M

OUT OFOH

,=

0,=

H,L=HAAH

. =00, dd-

4 -

PUSH

CALL !

LDA KWOHT = CPI 17

jz ADEX .

CPI 16 ENTER??

J2 STP8 . 8 -

1

CALL KDEr LDA KWOHT STA AIN4 OUT OFOH CALL LDA KWGHT

=

10 2

10 4

10 5

1 18

1 19

1Z>

1 22

1 28

1 54

SO 00 ci 00

00

00

2 00

76 00

00

0087 32 008 008D 17 00 8 17 00 8F 17 00 90 17 00 91 21 00 94 0095 32 00 98 00 9 00 9 00 9 00 9 009 00 9 OOiO 00 A2 2 00 5

;

005 005 00 5 1 009 77 5 00 1 23 00 AD DI 13 00 AF 5 7 001 D3 7 00 4 D3

006

00 9 00 9 009 1 D1 00

00 00 00

00 BF 00

00 00

0001 00

0002 00 00 00 4 00

00 5

EHROaS

STA AIN3

LDA AIN4

LXI H.AIN3 ORA M STA AIN3 OUT OFOH

CALL

LDA KWOHT

CPI 16

JNZ TNIB

4

.

1)= ENTER???

, 4

LDA AIN3

POP MOV . POSH

STP8 INX

pop inx

62 00

4 00

PUSH D

mv

OUT 0F1H

MOV A.D

OUT 0P2H

JMP HRED

ADEX H D JMP BEGIN

1

) .

) 1

ain1 nop ain2 nop ain3 nop ain3 nop kwght nop kdet

begin nop end

END

1 2 symbols



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [ 42 ] 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57