jazzbel avatar

An Assembly level language program to find smallest and largest number in Microprocessor 8086.

jazzbel1

Published: 31 Oct 2021 › Updated: 31 Oct 2021An Assembly level language program to find smallest and largest number in Microprocessor 8086.

An Assembly level language program to find smallest and largest number in Microprocessor 8086.

image.png

A program to find smallest and largest number.
Software used:Emu8086

Code:

DATA SEGMENT
A DW 8,2,5,6,1,3
DATA ENDS
CODE SEGMENT
ASSUME DS:DATA,CS:CODE
START:
MOV AX,DATA
MOV DS,AX
MOV CX,0000
MOV CL,06
LEA BX,A
MOV DX,WORD PTR[BX]
MOV AX,0000
L1:CMP AX,WORD PTR[BX]
JNC L2
MOV AX,WORD PTR[BX]
L2:CMP DX,WORD PTR[BX]
JC L3
MOV DX,WORD PTR[BX]
L3:ADD BX,02
DEC CL
CMP CL,00
JNZ L1
MOV AH,4CH
INT 21H
CODE ENDS
END START

Smallest Flowchart:

smallest.PNG

Largest Flowchart:
largest.PNG

Output:

image.png

Leave An Assembly level language program to find smallest and largest number in Microprocessor 8086. to:

Written by

Read more #stemgeeks posts


Best Posts From jazzbel

We have not curated any of jazzbel1's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From jazzbel