Friday, July 27, 2018

8085 Microprocessor Assembly Language Program To Find Largest And Smallest

8085 Microprocessor Assembly Language Program To Find Largest And Smallest



Aim
To write a 8085 ALP to find largest and smallest of n 8 bit numbers

Program

AddressMnemonicsOpcodeLSBMSBComments
2000LDA 25003A025Load accumulator with count
2003MOV C,A4FCopy count to register c
2004LXI H,2501210125Load first numbers address in HL pair
2007MOV A,M7ECopy first accumulator
2008MOV B,A47Copy first number to register B
2009MOV D,A57Copy first number to register D
200ADCR C0DDecrement limit
200BINX H23Take next number in HL pair
200CMOV A,M7ECopy next number to accumulator
200DCMP Blink download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.