Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Microprocessor and micro controller, Study Guides, Projects, Research of Electronics

MPMC project work including add sub of two 8 bit numbers

Typology: Study Guides, Projects, Research

2022/2023

Uploaded on 11/17/2023

vishal-kumar-76
vishal-kumar-76 🇮🇳

2 documents

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSIOT 2022UCI8054
Experiment1:
TO CALCULATE FIBONACCI SERIES
.MODEL SMALL
.DATA
FIB DB ?
CNT DB 05H
.CODE
START: MOV AX ,@DATA
MOV DS,AX
LEA DI ,FIB
MOV CL,CNT
MOV AX,00H
MOV BX,01H
LABLE:ADD AX,BX
MOV [DI],AX
MOV AX,BX
MOV BX,[DI]
DEC CL
JNZ LABLE
HLT
OUTPUT
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Microprocessor and micro controller and more Study Guides, Projects, Research Electronics in PDF only on Docsity!

Experiment1:

TO CALCULATE FIBONACCI SERIES

.MODEL SMALL
.DATA
FIB DB?
CNT DB 05H
.CODE
START: MOV AX ,@DATA
MOV DS,AX
LEA DI ,FIB
MOV CL,CNT
MOV AX,00H
MOV BX,01H
LABLE:ADD AX,BX
MOV [DI],AX
MOV AX,BX
MOV BX,[DI]
DEC CL
JNZ LABLE
HLT

OUTPUT

EXPERIMENT 2: TO ADD,SUB,DIV AND MUL TWO NUMBERS

org 100 mov ax,08h mov bx,06h add ax,bx sub ax,bx mul bx div bx

Output

ADD

SUB

EXPREIMENT 3:

TO FIND FACTORIAL OF A NUMBER

org 100h MOV AX,00H MOV ax, mov bx ,ax cmp ax, je done fact: dec bx mul bx jnz fact done: mov ah, 4ch int 21h

OUTPUT

EXPERIMENT 4:

TO SORT AN ARRAY USING BUBBLE SORT

.MODEL SMALL
.DATA

arr: dB 15h,0h,25h,8h,10h,5h,9h,15h,86h,15h ;b dW 0Ah ;c dW 09h .code MOV AX,arr MOV DS,AX MOV CL,0Ah BACK: LEA SI,arr MOV BH,09h SWAP: MOV AX,[SI] MOV BL,[SI+1] CMP AL,BL JC NOSWAP MOV [SI],BL MOV [SI+1],AL NOSWAP: INC SI DEC BH JNZ SWAP MOV AX,4CH

EXPERIMENT 5

TO MOVE DATA FROM SOURCE TO DATA

DATA SEGMENT

s1 db 10,20,30,40,50,60,70,80, s2 db 10dup(0) data ends mov si , 500 mov di, 600 mov ax, mov ds,ax mov es,ax mov cl,[si] mov ch, inc si cld rep movsb Hlt

OUTPUT

EXPERIMENT 6

TO FIND THE SQUARE ROOT OF A NUMBER
.MODEL SMALL

.code MOV AX, 0000H MOV BX, 0000H MOV CX, 0000H MOV AL, MOV BL,01H ROOT: CMP AL,00H JZ ZERO SUB AL,BL AAS