1-Laborotoriya ishi. Mavzu: Eng oddiy dasturlarni yaratish va tuzish Ishning maqsadi: kp580 mikroprotsessor komandalarini organish assembler tilida dasturlar tuzish




Download 1,51 Mb.
bet4/4
Sana13.05.2024
Hajmi1,51 Mb.
#230265
1   2   3   4
Bog'liq
mikro

3-Laborotoriya ishi.
Mavzu:Kichik sonlar ustida eng oddiy arifmetik-mantiqiy amallar bajarish.
14-VARIANT
Ishning maqsadi: KP580 MP registerlari bilan tanishish. Komandalariga ishlov berish va ma’lumotlarga o’tishni o’rganish.



Адрес(hex)

Мнемоника

Код

Содержание

0000

LDA 0x3000

0x3A
0x00
0x30

B ni chaqirish

0003

MOV B,A

0x47

B ga 3 ni o’zlashti

0004

LDA 0x3000

0x3A
0x00
0x50

C ni chaqirish

0007

MOV C,A

0x50

C ga 5 ni o’zlashtirish

0008

LDA 0x5000

0x3A
0x00
0x40

D ni chaqirish

000B

MOV D,A

0x57

D ga 4 ni o’zlashtirish

000C

MOV H,A

0x26

03 kiritildi

000E

MOV A,B

0x67

Akkumlatorga B ni ko’chirish

000F

ANA C

0xA1

Mantiqiy Va

0010

SUB D

0x92

D ni ayirish

0011

RAL

0x17

*2 ga

0012

ADD H

0x84

H ga qo’shish

0013

STA 0x7000

0x32
0x00
0x70

Chiqgan javobni biror addresga chop etish uchun chaqirish

0015

MOV M,B

0x70

7000 ga ko’chirildi

0016

HLT

0x78

Tugatildi





Download 1,51 Mb.
1   2   3   4




Download 1,51 Mb.

Bosh sahifa
Aloqalar

    Bosh sahifa



1-Laborotoriya ishi. Mavzu: Eng oddiy dasturlarni yaratish va tuzish Ishning maqsadi: kp580 mikroprotsessor komandalarini organish assembler tilida dasturlar tuzish

Download 1,51 Mb.