Question

Write an Assembly program that will multiply two arrays (index by index) and store the result in a third array. Declare an ar

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Assembly Language Program that will multiply two array ( index by index ) and store the result into third array

//Every step is explained in the comment of every line
 

ORIG X3000 MAIN AND R1, R1, #0 ; LOOP counter LOOP LD RZ, LIMIT ADD R2, R2, R1 BRZ END_LOOP ; Check to see if weve hit our l7 arr2 .FILL .FILL 4 .FILL 1 .FILL 2 1 arr3 BLKW 4 ; used to store our answer . END

PS: Feel Free to ask any doubts in the comment section and don't forget to rate the answer

Add a comment
Know the answer?
Add Answer to:
Write an Assembly program that will multiply two arrays (index by index) and store the result...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Suppose we have C program, int foo(long s, long d) {     char arr_a[11];     int...

    Suppose we have C program, int foo(long s, long d) {     char arr_a[11];     int i;     arr_a[10] = 0;     arr_s[10] = 0;     for (i = 0; i < 5; i++) {       if ((s == 1) && (d == 2)) {    arr_a[i] = hello[4-i];    arr_s[i] = hello[4-i];    arr_a[i+5] = world[i];    arr_s[i+5] = world[i];       } else {    arr_a[i+5] = hello[4-i];    arr_s[i+5] = hello[4-i];    arr_a[i] = world[i];    arr_s[i] =...

  • Assembly language 64 bit please ! An example file for set up ==========+ ;| Data Segment...

    Assembly language 64 bit please ! An example file for set up ==========+ ;| Data Segment BEGINS Here | ;+======================================================================+ segment .data ;Code this expression: sum = num1+num2 num1 dq 0 ;left operand of the addition operation num2 dq 0 ;right operand of the addition operation sum dq 0 ;will hold the computed Sum value RetVal dq 0 ;Integer value RETURNED by function calls ;can be ignored or used as determined by the programmer ;Message string prompting for the keyboard...

  • How can I convert the following C code to MIPS Assembly? +++++++++++++++++++++++++++++++++ MIPS main program ++++++++++++++++++++++++++++++++...

    How can I convert the following C code to MIPS Assembly? +++++++++++++++++++++++++++++++++ MIPS main program ++++++++++++++++++++++++++++++++ .data # Defines variable section of an assembly routine. array: .word x, x, x, x, x, x, x, x, x, x # Define a variable named array as a word (integer) array # with 10 unsorted integer numbers of your own. # After your program has run, the integers in this array # should be sorted. .text # Defines the start of the code...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT