Kxhitiz Admin
Posts : 24 Join date : 2009-03-06
| Subject: program for 8085 to find the smallest number Mon Mar 30, 2009 1:11 pm | |
| Write a program for 8085 to find the smallest number among ten numbers stored at memory location 4500H Solution: MVI C,09H LXI H,4500H MOV A,M Next: INX H CMP M JC Skip JZ Skip MOV B,M MOV M,A MOV A,B Skip: DCR C JNZ Next INX H MOV M,A ;stores smallest no. at the end HLT | |
|