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
| Address | Mnemonics | Opcode | LSB | MSB | Comments |
| 2000 | LDA 2500 | 3A | 0 | 25 | Load accumulator with count |
| 2003 | MOV C,A | 4F | Copy count to register c | ||
| 2004 | LXI H,2501 | 21 | 01 | 25 | Load first numbers address in HL pair |
| 2007 | MOV A,M | 7E | Copy first accumulator | ||
| 2008 | MOV B,A | 47 | Copy first number to register B | ||
| 2009 | MOV D,A | 57 | Copy first number to register D | ||
| 200A | DCR C | 0D | Decrement limit | ||
| 200B | INX H | 23 | Take next number in HL pair | ||
| 200C | MOV A,M | 7E | Copy next number to accumulator | ||
| 200D | CMP B | link download
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.