Write a SRC assembly language routine that defines 4 arrays of 4 elements each: A, B -- which contain numbers to be added, and Sum and Overflow -- which will contain the Sums of the pairs of elements in A and B and an indicator to show whether overflow occurred when adding each pair of numbers. Initialize the elements of A and B with numbers that will and will not cause overflow. Make the last pair of numbers positive numbers whose sum will cause overflow. Use a loop in the mainline program that presents corresponding pairs of A and B and the addresses of the corresponding Sum element and Indicator element to a subroutine that will add the pair of numbers and store the sum and overflow indicator. Use the 4 memory locations after the call to the subroutine to pass A, B, and the addresses of the appropriate elements of Sum and Overflow.
Turn in the .lst file for the program and a picture of the simulator that includes the memory areas that show the 4 arrays after the program has executed.