You are currently viewing [PRACTICAL] Implement program to Add 2 arrays having ten 8-bit numbers each and generate a third array of result
Microprocessor 8085 programming

[PRACTICAL] Implement program to Add 2 arrays having ten 8-bit numbers each and generate a third array of result

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

[PRACTICAL] Implement program to Add 2 arrays having ten 8-bit numbers each and generate a third array of result

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