- Related Questions & Answers
- 8086 program to determine subtraction of corresponding elements of two arrays
- 8086 program to determine product of corresponding elements of two array elements
- 8086 program to determine modulus of first array elements corresponding to another array elements
- Comparing corresponding values of two arrays in JavaScript
- 8086 program to determine cubes of numbers in an array of n numbers
- 8086 program to determine squares of numbers in an array of n numbers
- 8086 program to determine largest number in an array of n numbers
- 8086 program to find sum of digits of 8 bit number
- Reverse sum of two arrays in JavaScript
- Maximum Sum of Products of Two Arrays in C++
- Maximum OR sum of sub-arrays of two different arrays in C++
- Find a pair of elements swapping which makes sum of two arrays same in C++
- Applying a custom function to each corresponding element of two arrays using JavaScript
- Column sum of elements of 2-D arrays in JavaScript
- Maximum sum of increasing order elements from n arrays in C++ program

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Here we will see how to find sum of two array elements and store result into memory.

Write 8086 Assembly language program to find summation of two arrays stored at 501 onwards and 601 onwards. The size of array is stored at location 500. After calculating the sum results are store result at 501 onwards.

To solve this problem, we are taking elements from first array using source register SI, and second array using destination register DI. Repeatedly take elements from SI to AL, then add with the content of DI, and store again into SI address. Thus it is solved.

Address | Data |
---|---|

… | … |

500 | 05 |

501 | 2C |

502 | 0B |

503 | 7D |

504 | 25 |

505 | 21 |

… | … |

601 | BA |

602 | 45 |

603 | 69 |

604 | CA |

605 | 95 |

… | … |

E6, 50, E6, EF, B6

Address | Data |
---|---|

… | … |

501 | E6 |

502 | 50 |

503 | E6 |

504 | EF |

505 | B6 |

… | … |

Advertisements