ACEM PORTAL

::Community of ACEM students::
 
HomeHome  CalendarCalendar  GalleryGallery  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
Poll
Latest topics
» Primer Imperio-Torre De Control Mp3
Fri Feb 14, 2014 1:20 pm by bakakali

» LTSP Deployment
Sat May 09, 2009 11:31 am by Santos

» GTA SanAndreas 64kB!!!
Tue May 05, 2009 2:56 pm by Santos

» EPL names..
Thu Apr 30, 2009 4:26 pm by Kxhitiz

» Google logo.
Thu Apr 30, 2009 4:22 pm by Kxhitiz

» Google logo.
Thu Apr 30, 2009 11:36 am by Santos

» the longest website in the world haha
Wed Apr 29, 2009 8:50 am by Kxhitiz

» Ubuntu 9.04 Jaunty Jackalope.
Sat Apr 25, 2009 12:31 am by Santos

» Program to display text with defined cursor position and defined color
Sat Apr 25, 2009 12:11 am by Santos

Navigation
 Portal
 Index
 Fun
 Memberlist
 Profile
 FAQ
 Search
July 2018
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    
CalendarCalendar

Share | 
 

 program for 8085 to find the smallest number

Go down 
AuthorMessage
Kxhitiz
Admin
Admin
avatar

Posts : 24
Join date : 2009-03-06

PostSubject: 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

cheers
Back to top Go down
View user profile http://advanced.forumotion.net
 
program for 8085 to find the smallest number
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
ACEM PORTAL :: Programming :: Assembly Language-
Jump to: