An Assembly level language program to find smallest and largest number in Microprocessor 8086.
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:
Largest Flowchart:
Output:
Leave An Assembly level language program to find smallest and largest number in Microprocessor 8086. to:
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
- Splinterlands Season End Reward...
- Back to Splinterlands grind after long time....
- CHAOES LEGION PACK OPENING....
- Splinterlands Season Ends Rewards - Bronze II | November 30 2021
- Splinterlands game week 2 update 2..
- Bhaktapur Durbar Square ,Nepal
- Splinterlands game week 2 update....
- Splinterlands game week 1 update 2 ..
- Splinterlands game week 1 update and season end rewards .....
- Splinterlands game week 2 update 1 ..