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

avatar

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

Posted with STEMGeeks



0
0
0.000
6 comments
avatar

Pure plagiarism. Taken from the following document.
https://gnindia.dronacharya.info/CSE/Downloads/Labmanuals/LAB_MANNUAL_MP_CSE_17012013.pdf
Congratulations. Reported to @hivewatchers.

0
0
0.000
avatar

Missed the reference .I have written so many posts on stemgeeks and i would not copy paste one flowchart to ruin my reputation in the portal.The code is mine i just took flowchart but missed the reference.And let me who to talk to @hivewatchers

0
0
0.000
avatar

One reference? The whole thing was lifted straight from that document. You didn't 'forget' anything.

0
0
0.000
avatar

I only had flowchart images from the pdf but the code is mine .

0
0
0.000
avatar

Congratulations @jazzbel1! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You received more than 400 upvotes.
Your next target is to reach 500 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Hive Power Up Day - November 1st 2021 - Hive Power Delegation
Bee ready for the 2nd Hive Power Up Month challenge!
Trick or Treat - Share your scariest story and get your Halloween badge
Support the HiveBuzz project. Vote for our proposal!
0
0
0.000
avatar

Source of plagiarism
Source of image plagiarism

Plagiarism is the copying & pasting of others' work without giving credit to the original author or artist. Plagiarized posts are considered fraud and violate the intellectual property rights of the original creator.
Guide: Why and How People Abuse and Plagiarise
Fraud is discouraged by the community and may result in the account being Blacklisted.

If you believe this comment is in error, please contact us in #appeals in Discord.

0
0
0.000