Programming the 8085
Home
Graphics
C++
Data Structures
Thursday, July 29, 2010
Largest of N numbers
10. Program to find the largest of N numbers.
0000 21 00 50 LXI H,5000H 0003 46 MOV B,M 0004 23 INX H 0005 7E MOV A,M 0006 05 DCR B 0007 23 LOOP: INX H 0008 BE CMP M 0009 DA 0D 00 JNC J1 000C 7E MOV A,M 000D 05 J1: DCR B 000E C2 07 00 JNZ LOOP 0011 23 INX H 0012 77 MOV M,A 0013 76 HLT
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment