6.3. 0000 TłOUOH |
OOOE |
00010101 | |
0001 00000001 |
OOOF |
00000000 | |
0002 11111110 |
0010 |
00111110 | |
0003 00110010 |
0011 |
01100100 | |
0004 11010010 |
0012 |
11000011 | |
0005 00001011 |
0013 |
00010111 | |
0006 ooooóooo |
0014 |
00000000 | |
0007 00000111 |
0015 |
11010110 | |
0008 11000011 |
0016 |
00110010 | |
0009 00010111 |
0017 |
11011011 | |
OOOA 00000000 |
0018 |
00000001 | |
OOOB 11111110 |
0019 |
11000011 | |
OOOC 10010110 |
001A |
00000000 | |
OOOD 11010010 |
001B |
oooooooo | |
6.4. UVX E,50 |
6.5. MVI |
C,100 | |
ORAY :DS 50 |
IN |
0 | |
LXI H,GRAY |
MOV |
B,A | |
FETIA :XN 0 |
START:DOR |
0 | |
GALL ZAM |
JZ |
DRUK | |
MOV M,A |
IN |
0 | |
INX H |
CMP B | ||
OCR E |
JC |
START | |
JNZ PĘTU |
M0V |
B.A | |
HIT |
JMP START | ||
ZAM :MOV B,A |
DRUK JMOV A.B | ||
RRC |
OUT |
1 | |
ANI 127 |
HIT | ||
XRA B |
END | ||
RET v | |||
END | |||
6.6. 10000000 | |||
6.7. XRA A |
MOV C,A | ||
IN 0 |
MOV A,B | ||
M07 C,A |
JMP PTIA | ||
PTLArRAR |
DRUKjMOY A,C | ||
JZ DRUK |
OUT 1 | ||
MOV B,A |
END | ||
KRA C | |||
, Q LXI B,0003H | |||
LXI D.0407H | |||
' SA :XRA A |
SB :MVI A#1 |
SC :MVI A,2 | |
OUT 0 |
OUT 0 |
OUT 0 | |
WEA :IN 1 |
WEB:IN 1 |
WEC: IN 1 | |
CMP B |
CMP C |
CMP D | |
JZ WEA |
JZ SA |
JZ WEC | |
CMP C |
CMP D |
CMP E | |
JZ WEA |
JZ SC |
JZ WEC | |
CMP D |
CMP E |
JMP SB | |
JZ SC |
JNZ WEB |
END | |
CMP E | |||
— JZ SC | |||
6.9. TRANS MACRO SKOK |
S3*MVI A ,1 | ||
OUT 1 |
TRANS SO | ||
El |
JMP S1 | ||
HIT |
S2:XRA A | ||
IN 1 |
TRANS S4 | ||
ANA A |
S5 :MVI A11 | ||
JZ SKOK |
TRANS S4 | ||
ENDM |
JMP S5 | ||
SOsKRA A |
S4:MVI A,1 | ||
TRANS SO |
TRANS S2 | ||
S1.:XRA A |
JMP S3 | ||
TRANS S2 |
END | ||
W cyklu POTWIERDZENIE PRZERWANIA szynę danych |
t można wyzerować | ||
zostanie odczytane |
przez |
p.P Jako rozkaz NOP, |
START:MVI B,0
MVI |
C,5 | ||
El | |||
HIT |
l | ||
tóVI |
D,220 | ||
PTL |
1:04? |
M | |
CMP |
M | ||
CMP |
U | ||
CMP |
U |
i | |
CMP |
M | ||
DCR |
D | ||
JNZ |
PTL |
1 | |
PTL |
4:MVI |
D,100 | |
PTL |
2:MVI |
E,9 | |
PTL |
3:04P |
14 |
i |
DCR |
E |
i | |
JNZ |
PTL |
3 | |
DCR |
D | ||
JNZ |
PTL |
2 |
oczekiwanie na przerwanie przez impuls START
pętla opóźnienia 11ms
pętla w pętli dla opóźnienia 22ms
O
IN O RAR
MOV A,B 5
DCR C JNZ PTL 4 JMP START END
dopisanie wczytanego bitu do rejestru B
0000 |
00100001 |
INI |
H,0060H |
0001 |
01100000 | ||
0002 |
00000000 | ||
0003 |
00001110 |
MVX |
C,4 |
0004 |
00000100 | ||
0005 |
11011011 |
IN < |
) |
0006 |
00000000 | ||
0007 |
01110111 |
MOV |
M,A |
0008 |
10100111 |
ANA |
A |
0009 |
11001010 |
JZ |
0012H |
000A |
00010010 | ||
000B |
00000000 | ||
OOOC |
00001110 |
MVI |
C,4 |
OOOD |
00000100 | ||
OOOE |
00100011 |
INX |
H |
000? |
11000011 |
JMP |
0005H |
0010 |
00000101 | ||
0011 |
00000000 | ||
0012 |
00001101 |
DCR |
c |
0013 |
11000010 |
JNZ |
0005H |
0014 |
00000101 | ||
0015 |
00000000 | ||
0016 |
11000011 |
JMP |
0060H |
0017 |
01100000 | ||
0018 |
00000000 |
LXI |
D,CZYT+1 |
PROGI:DS |
100 |
MVI |
B,100 |
INI |
H,PROGI |
PTL : IN |
0 |
MOV |
M,A |
INN |
H |
DCR |
B |
JNZ |
PTL |
PR :INI |
H,PROGI |
MVI |
B,1 |
CZYT :3N |
1 |
OUT |
0 |
CMP |
M |
JC |
DR |
JZ |
DR |
XRA A OUT 0 JMP DRNR DR JulVI A ,OPFH
OUT 0
DRNR:M0V A,B OUT 0 CPI 100 JZ PR INX H 1NR B XCHG M0V M,B X0HG
JMP CZYT END