5
(1)

[PRACTICAL] IMPLEMENT PROGRAM TO ADD 2 ARRAYS HAVING TEN 8-BIT NUMBERS EACH AND GENERATE A THIRD ARRAY OF RESULT

Are you looking for a step-by-step guide to Implement program to Add 2 arrays having ten 8-bit numbers each and generate a third array of result? here are the steps to implement program to Add 2 arrays having ten 8-bit numbers each and generate a third array of result.

Theory:

Program user two list of memory location one is starting from C050h and another is started from C060h, both have 10 elements and store addition of two array in third array started from C070h.

(C070) = (C050) + (C060)

(C071) = (C051) + (C061) and so on.

Program:

        LXI H,C050H               
               LXI B,C060H               
               LXI D,C070H               
       BACK: LDAX B                     
               ADD M                        
               STAX D                       
               INX H                        
               INX B                        
               INX D                        
               MOV A, L
               CPI 0AH                   
               JNZ BACK               
               HLT        

Output:

For more practical related to 885 Programming please visit the 8085 Programming link

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Share this post on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?