296 |
o* | |||||
6.3, |
0000 |
11011011 |
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 | |||
000A |
00000000 |
0018 |
00000001 | |||
000B |
11111110 |
0019 |
11000011 | |||
0000 |
10010110 |
001A |
00000000 | |||
000D |
11010010 |
001B |
00000000 | |||
6.4. |
UVI E,50 |
6.5. MVI |
0,100 | |||
G-RAT |
:DS 50 |
IN |
0 | |||
LXI H,GRAY |
MOV |
B,A | ||||
FETIA |
: IN 0 |
START:DCR |
C | |||
CALL ZAM |
JZ |
DRUK | ||||
MOV M,A |
IN |
0 | ||||
INX H |
CMP |
B | ||||
DCR E |
JC |
START | ||||
JNZ PETIA |
M0V |
B,A | ||||
H W |
JMP START | |||||
ZAM |
:M0V B,A |
DRUK :M0V A,B | ||||
RRO |
OUT |
1 | ||||
ANI 127 |
HIT | |||||
XRA B RET v END |
END | |||||
6.6. |
10000000 | |||||
6.7. |
XRA A |
M0V C,A | ||||
IN 0 |
MOV A,B | |||||
M07 C,A |
JMP PT LA | |||||
PT LA |
:RAR |
DRUKjMOY a,c | ||||
JZ DRUK |
OUT 1 | |||||
MOV B,A XRA C |
END | |||||
6.8. |
LXI B,00039 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 |
WECsIN |
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 CMP E |
JNZ WEB |
END | ||||
— |
JZ SC | |||||
6.9. |
TRAHS MACRO SKOK |
S3»MVI A ,1 | ||||
OUT 1 |
TRANS SO | |||||
El |
JMP S1 | |||||
HLT |
S2:XRA A | |||||
IN 1 |
TRANS S4 | |||||
ANA A |
S5:MVI A11 | |||||
JZ SKOK |
TRANS S4 | |||||
ENDtó |
JMP S5 | |||||
S0:XRA A |
S4:MVI A,1 | |||||
TRANS SO |
TRANS S2 | |||||
S1.:XRA A |
JMP S3 | |||||
TRANS S2 |
END |
W cyklu POTWIERDZENIE PRZERWANIA szynę danych można wyzerować, co zostanie odczytane przez y.P jako rozkaz NOP,
6,10
START;MVI B,0 MVI C,5 El | ||
HIT |
ł oczekiwanie aa przerwaaie | |
MVI D,220 |
przez impuls START | |
PTL 1iCMP M CMP M CMP U | ||
CMP U CMP M DCR D JNZ PTL 1 |
; pętla opóźaienia 11ms | |
PTL 4sMVI D,100 | ||
PTL 2:MVI E,9 | ||
PTL 3tCMP M |
} pętla w pętli dla | |
DCR E |
; opóźaienia 22ms | |
JNZ PTL 3 DCR D JNZ PTL 2 IN 0 RAR | ||
MOV A,B |
5 dopisanie | |
RAL |
j wczytanego bitu | |
MOV B,A DCR C JNZ PTL 4 JMP START END |
1 do rejestru B | |
0000 |
00100001 |
DCI H,0060H |
0001 |
01100000 | |
0002 |
00000000 | |
0003 |
00001110 |
MVI C,4 |
0004 |
00000100 | |
0005 |
11011011 |
IN 0 |
0006 |
00000000 | |
000? |
01110111 |
MOV M,A |
0008 |
10100111 |
ANA A |
0009 |
11001010 |
JZ 0012H |
OOOA |
00010010 | |
OOOB |
00000000 | |
0000 |
00001110 |
MVT C,4 |
OOOD |
00000100 | |
OOOE |
00100011 |
DCC H |
000? |
11000011 |
JMP 0003H |
0010 |
00000101 | |
0011 |
00000000 | |
0012 |
00001101 |
DOR C |
0013 |
11000010 |
JNZ 0005H |
0014 |
00000101 | |
0015 |
00000000 | |
0016 |
11000011 |
JMP 0060H |
0017 |
01100000 | |
0018 |
00000000 | |
DCI D.CZYT+1 |
XRA A | |
PROGI |
sDS 100 |
OUT 0 |
MVI B,10C |
JMP DRNR | |
DCI H,PROGI |
DR :MVI AjOPEH | |
PTL |
: IN 0 |
OUT 0 |
MOV M,A |
DRNR:MOV A,B | |
mx h |
OUT 0 | |
DCR B |
CPI 100 | |
JNZ PTL |
JZ PR | |
PR |
: DCI H,PROGI |
mx h |
MVI B,1 |
INR B | |
CZYT |
:3N 1 |
XCHG |
OUT 0 |
MOV M,B | |
CMP M |
XCHG | |
JC DR |
JMP CZYT | |
JZ DR |
END |