Question: 6. (10 marks) Write, and test using spim, an assembly language program that accepts as input a sequence of 10 integers. These numbers should be
6. (10 marks) Write, and test using spim, an assembly language program that accepts as input a sequence of 10 integers. These numbers should be stored in an array in memory, in the order in which they were input. Then, your program should prompt the user for an integer input and search the array to find the first occurrence (if any) of this integer. If found, output its position in the array as an integer between 1 and 10. Again, you need only find the first occurrence. Your program should then prompt the user for another integer input, and repeat. Once the input integer is NOT found in the array, your program should terminate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
