Komputer arxitekturasi 1-5 labaratoriya



Download 0,79 Mb.
Pdf ko'rish
bet3/3
Sana14.01.2022
Hajmi0,79 Mb.
#363903
1   2   3
Bog'liq
Labaratoriya

5-laboratoriya ishi 

2.variant. F=(((a*b)&c)*a+b)*c ni hisoblash.       a=5h, b15h, c=30h. 

Dastur kodi: 

 

LDA 0x0200 



                                                                           MOV B,D 


MOV D,A                                                                                       CALL func 

LDA 0x0210                                                                                  POP B 

MOV B,A                                                                                       ADD B 

LDA 0x0300                                                                                  PUSH B 

MOV C,A                                                                                       MOV B,A 

PUSH B                                                                                          CALL func 

MOV C,B                                                                                       STA 0X030A 

MOV B,D                                                                                       HLT 

CALL func                                                                                      func: MVI A,00 

POP B                                                                                             M1:   ADD B 

ANA C                                                                                            DCR C 

PUSH B                                                                                          JNZ    M1 

MOV C,A                                                                                       RET 

Dastur natijasi: 



 

 

Download 0,79 Mb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish