O ’tkazish b uyruqlar guruhi
№
Mnem okod-
lar
Amal
Mashina
davri
Mashina
takti
For
mati
Boshqaruvchi
registri,
s o ’zni
belgi lari
1
2
3
4
5
6
7
1
M O Y RI R2 ( R D (R2)
1
5
1
H am m a belgilar
o ’z qiymatilarini
saqlab qoladi
2
XSNS
(N L) (D E)
1
4
1
3
SRNL
(SR) (NL)
1
5
1
4
MO Y R, M
(R) M (NL)
2
7
1
5
M O Y M, R
M (N L) (R)
2
7
1
134
6
S T A X RR
M (K R ) (A)
2
7
1
7
L D A R R
(A) M (K R )
2
7
1
8
LDA A16
(A ) M (A16)
4
13
3
9
STA A16
M (16) (A)
4
13
3
10 L N L D A 16
(NL) M(A 16)
5
16
3
11 S N LD A 16
M (A 16) (N1)
5
16
3
12 MYI R, D8
(R ) 08
2
7
2
13 LX1 R R,D 16 (K R) D16
3
10
3
14 MYI M, D8
M (N) D8
3
10
2
15 RUSN RR
M ( S R - l ) (R RN)
3
11
1
16 R O R RR
(RRL) M(SR)
3
11
1
17 X TN L
M ( S R - l )
(L )
5
18
1
18 IN PO R T
(A ) I(PORT)
J
10
2
19 O U T PO RT
O (P O R T ) (A) (A)
3
10
2
A r i f m e t i k a m a l l a r n i n g b u y r u c l i a r g u r u h i
1
2
3
4
5
6
7
2 0
A D D R
( A ) ( A ) + ( R )
1
4
1
S, Z, A C . P. C Y
21
A D C R
( A ) ( A ) + ( R ) + C Y
1
4
1
22
S U B R
( A ) ( A ) - ( R )
1
4
1
— « —
23
S B B R
( A ) ( A ) - ( R ) - C Y
1
4
1
—
« —
2 4
I N P R
( R ) ( R ) + l
1
5
1
S, Z . A C . P
2 5
D C 'R R
( R ) ( R ) - I
1
5
1
— « —
2 6
D A D R P
( H L ) ( H L ) + ( R P )
z ,
10
1
C Y
2 7
I H X R P
( R P ) ( R P ) + I
1
5
1
— « —
2 8
D C X R P
( R P ) ( R P ) - I
1
5
1
— « —
2 9
A D D M
( A ) ( A ) + M ( H L )
2
7
1
S. Z . A C . P C Y
3 0
A D C M
( A ) < - ( A ) + M ( l I L l + C Y
2
7
1
—
« —
31
S U B M
( A ) ( A ) - M ( I I L )
2
7
1
— « —
3 2
S B B M
( A ) ( A ) - M ( H I . ) - C C Y C Y
2
7
1
—
«
—
33
I N R M
M ( H I . ) M ( H I . ) + I
3
10
1
S. Z , A C . P
3 4
D C R M
M ( H L ) M ( H 1 .) - 1
3
10
1
— « —
3 5
A D I D 8
( A ) ( A ) + D 8
2
7
2
S , Z . A C . P. C Y
3 6
A C I D S
( A ) ( A ) + D 8 + C Y
2
7
2
—
« —
3 7
S U I D 8
( A ) ( A ) - D 8
2
7
2
— « —
38
S B I D 8
( A ) ( A ) - D 8 - C Y
2
7
2
— « —
3 9
D A A
A k k u m u l y a l o r g a
o n l i k
rio or v e k tsi ya
1
4
1
L o g i k a m a l l a r n i n g b u y r u q l a r g u r u x i
I
2
3
4
5
6
7
4 0
A N A R
( A ) ( A ) A N D ( R )
1
4
1
S , Z , P . A C * , C Y = 0
41
X R A R
( A ) ( A ) X O R ( R )
1
4
1
S , Z , P , A C = C Y = 0
4 2
O R A R
( A ) ( A ) O R ( R )
1
4
1
— « —
4 3
C M P R
( A ) ( R )
1
4
1
S , Z . A C , P , C Y
4 4
R L C
c h a p g a d a v r l i s u r i s h
1
4
1
C Y A ( 7 ) , A C = 0
4 5
R R C
o ’n g g a d a v r l i s u r i s h
1
4
1
C Y A ( 0 ) , A C = 0
4 6
R A I .
A ( 0 )
C Y
o r q a l i
o ’n g g a d a v r l i s u r i s h
1
4
1
C Y A ( 7 ) , A C = 0
4 7
R A R
A ( 7 ) C Y o r q a l i o ’n g g a
d a v r l i s u r i s h
1
4
1
C Y A ( 0 ) , A C = 0
4 8
C A M
( A ) I N Y ( A )
1
4
1
C Y
A ( 0 ) , A C = 0
4 9
A N A M
( A ) ( A ) A N D M ( H L )
2
7
1
S , Z , P , A C , C Y = 0
5 0
X R A M
( A ) ( A ) X O R M ( H L )
2
7
1
S , Z , P , A C = C Y = 0
51
O R A M
( A ) ( A ) O R M ( H L )
2
7
1
S . Z . P , A C = C Y = 0
52
C M P M
( A ) M ( H L )
2
7
1
S , Z . P , A C , C Y - 0
53
A N I D 8
( A ) ( A ) A N D D 8
2
7
2
S , Z , P . A C * , C Y = 0
54
X R I 1)8
( A ) ( A ) X O R D 8
2
7
2
S . Z . P . A C = C Y = 0
55
5 6
”57"“ "
O R I D 8
C P I ON
C M C
( A ) ( A ) O R D 8
2
~2~~
...
7
7
4" ............
2
T
“
1.....
-«-
( A ) ( D 8 )
S Z P. A C . C Y
: ( C Y ) I N Y ( C Y )
1
C Y
58
S T C
j ( C Y )
м и к р о п р о ц е с с о р о в
1
4
I
C Y = I
U z a t i s h n i b o s h q a r u v c h i b u y r u q l a r t o ' p l a m i
1
2
3
4
5
6
7
5 9
( P C 1 D M H )
1
5
1
H a m m a b e l g i l a r o ' z
q i y m a t l a r i n i
s a q l a b
q o l a d i
6 0
JMI>
A 1
b
( P C ) A 1 6
61
J i C O N D
>16
A g a r d a
s h a r t
b a j a r i l s a
( P C )
Л 1 6 b o ' l m a s a ( P C ) ( P C ) + 1
3
5
10
17
3
62
C A M ,
A 1 6
M ( S P - I ) ( P H C )
M ( S P - 2 ) ( P C L ) ( S P ) ( S P ) - 2
( P C ) A 16
H a m m a b e l g i l a r o ' z
q i y m a t l a r i n i
s a q l a b
q o l a d i
63
(.’{CON
I) /\ )
A 16
A g a r d a
s h a r t
b a j a r i l s a
6 2 -
b u y r u q q a
q a r a n g ,
b o ' l m a s a
( P C ) ( P C ) + 1
3
5
1 1
17
3
:
64
RS T N
M ( P S ) ( P C )
( P C ) N * 8
3
3
11
11
1
65
r i
-:
t
( P C I . ) M ( S P )
( P H C ) M ( S P ) + 1 21
( S P ) ( S P ) + 2
3
10
1
6 6
R( C( )N
D)
A g a r d a
s h a r t
b a j a r i l s a
6 5 -
b u v r u q q a
q a r a n s ,
b o ' l m a s a
( P C ) ( P C ) + 1
3
1
11
3
1
i
1
M a x s u s b u y r u q l a r g u r u h i
1
2
3
4
5
6
7
67
I-Л
! V a q t i n c h a
t o ’x t a s h g a
r u h s a t
i b e r i s h ( t r i g g e r R P R )
1
1
4
1
6 8
Di
V a q t i n c h a t o ’x t a s h n i m a n e t is h
1
4
1
136
( t i g g e r R P R ) 0
6 9
H L T
T o ’x t a s h
1
7
1
7 0
N O P
B e k o r q il is h
I
4
1
H o l a t r e g i s t r i n i n g q i y m a t i
Fa ol
b e l g i l a r
S Z A C P C Y
0 2
---
S - I s h o r a b e l g is i, n a t i j a n i n g k a t t a
0 3
C Y
r a z r y a d n i n g q i y m a t i n i o l a d i
0 6
P
Z - no l b e l g i s i ( a g a r d a n a t i j a n o l g a t e n g
0 7
P , C Y
b o ' l s a Z = l b o ' l m a s a Z = 0 )
12
A C
13
A C , C Y
A S - q o ' s h i m c h a k o ' c h i r i s h b e l g i s i . M a b o d o
16
A C . P
b a y t l e t r a d a l a r i o r a s i d a k o ' c h i r i s h b o ' l s a
17
A C , P , C Y
A S = 1 b o l m a s a A S = 0
4 6
Z , P
4 7
Z . P . C Y
P - ju ft lik b e l g is i. M a b o d o . q i y m a t n i b a y t i d i
56
Z . A C . P
b i r l a r n i n g s o n i juft b o ' l s a R = l , b o ' l m a s a R = 0
57
Z . A C . P . C Y
82
S
C Y - k o ' c h i r i s h ( q a r z ) b e l g is i. M a b o d o
8 3
S X ' Y
buy r u q b a j a r i l g a n d a k a t t a r a z r y a d tu f a y li
8 6
S .P
k o ' c h i r i s h p a y d o b o ' l s a y o k i k a t t a r a z r y a d g a
8 7
S . P . C Y
q a r z b e r i ls a . u h o l d a C Y = 1 , b o ' l m a s a C Y = 0
9 2
S . A C
b o ' l a d i
9 3
S . A C . C Y
9 6
S . A C . P
9 7
S . A C . P . C Y
Ikki baytli buyruqlar xotira yacheykalariga bevosita adreslash usuli orqali
am alga oshiriladi, uch baytli buyruqlar esa xotira yacheykalariga to ’g ’ri adreslash
usuli orqali amalga oshiriladi.
4.2-jadvalda quyidagi qisqartirilgan belgilar ishlatilgan:
<
o ’tkazish amali;
< — > — almashish amali;
A N D — ko n ’yuksiya (I);
O R — dizyunks iya (ILI);
X OR — modul 2 buyicha q o ’shish (ILI ni inkor etish);
INV — inversiya (aylantirish);
R — A,B,C,D,E,H,L registlaridan bittasi;
RP — Juft B,D,H yoki SP registrlaridan bittasi;
RP1 — V yoki D j u f t registrlaridan bittasi;
RPH — juft registrining katta registri;
RPL — ju ft registrining kichik registri;
M — HL registri orqali vositali adres lanadigan xotira;
P O R T — kiritish/chiqarish portining 8-razryadli adresi;
N I — sakkizta 0,1,2,3,4,5,6,7 vaqtincha uzishning bittasi;
D8 — sakkizta razryadli bevosita operand;
D16 — o ’n olti razryadli bevosita operand;
A 16 — o ’n olti razryadli adres;
137
(R) — registrning qiymati;
(RP) — ju f t registrining qiymati;
M (R P ) — RP j u f t registrini adresi buyic ha saqlanadigan xotira yacheykasinin g
qiymati;
I(PORT) — (PO RT) adresidagi kiritish portini qiymati;
O (P O R T ) — P O R T adresidagi chiqarish portini qiymati;
C O N D — ushbu sakkizta shartn in g bittasi;
NZ — nol b o ’lmagan natija (z#0);
Z — nolli natija (Z=l);
N C — katta razryaddan o ’tkazishni (qarzni) katta razryadga k o ’chirishni y o ’qiigi
(C Y=0);
S — k o ’chirishning y o ’qligi;
RO — qiym atd a bitiarnin g sonini toqligi (R=0);
RE — qi ym atd a birlarning sonini juftligi (R=0);
R — "musbat" (S=0);
M — "manfiy" (S=l);
M T S — m ashina davrining miqdori;
M T — mashin a ta kt ining miqdori;
F — baytlarda buyru qlarnig formati.
Buyruqlarni m n em on ik shaklda yozish.
MP ni buyruqlari bu ikkilik sonlardir.
Buyru qla r bir baytli, ikki baytli, y a ’ni sakkiz va o ’n olti razryadli b o ’lishi mum kin .
A m aliyotd a hattoki bitta baytli soniarni eslab qolish j u d a ham qiyindir. S akkiz va o ’n
oltilik sanoq sistemasidagi sonlar bilan M P buyruqlarni belgilasa b o ’lar edi. Biroq bu
hold a ham bu soniarni (buyruqlarn i) eslab qolish va nim ag a m o ’ljallanganligini
ajratib olish j u d a qiyindir.
Bunday m u a m m o m nem onik (b e lg ila sh ) y o ’li bilan amal qilinadi. Y a ’ni bu
ye rd a atalgan buyru qning qisqartirilgan yozuvi q o ’llaniladi. Bunday m aqsadda
am alnin g nomini bajarilayogan buyru qning uchta harfidan foydalanib belgilanadi.
Masalan, tozalash b u y ru g ’ining m nem onik belgilanishi quyidagi k o ’rinishga
ega b o ’ladi: CLA . (4.3-jadval).
KR5801K80 seriyali MP bazali buyru qlar tizimi, mnem okod k o ’rinishida 4.3-
ja d v a l d a keltirilgan. M nem okodlarni o ’n oltilik sanoq tizimiga o ’tkazish uchun
av valo kerak b o ’lgan m nem okodni 2-jadvaldan tanl-ash kerak, keyin esa ja d v aln in g
vertikal va gorizontal ch egaralaridagi tanlangan mnem okod bilan kesishadigan
katakc halaridan m n em okodga ekvivalent b o ’lgan 16 lik mashin a kodi topiladi.
M nem okodni mashin a kod ig a o ’tkazish paytida vertikal ustundagi 16 lik
sonlar birinchi b o ’lib, gorizontal qatordagi 16 sonlar esa ikkinchi b o ’lib yozilishi
shart.
Masalan:
STA X V - 02
INX V - 03
PO P N - El
MVl L , - 2 E
138
|