HOME

Monday, May 4, 2015

8085 MPU PROGRAM TO FIND THE SMALLEST NUMBER FROM GIVEN ARRAY ELEMENT

LXI H 1000h
MVI C 05h
MOV A M
LOOP: INX H
CMP M
JC SMALLEST
MOV A M
SMALLEST: DCR C
JNZ LOOP
STA 2000h
HLT

Please fill the usergrid which is starting from 1000h to 1006h and input the value to find the smallest number from the given value and don't forget to make 2000h location also so, that smallest number will be store in 2000h location.

No comments:

Post a Comment