Question: Complete the code in ArrMin.asm . Inputs: R1 contains the RAM address of the first element in the array and the R2 contains the length

  • Complete the code in ArrMin.asm.

Inputs: R1 contains the RAM address of the first element in the array and the R2 contains the length of the array.

Output: Final answer to R0.

  • Write 7 test cases (Positive Integers, Array Size/Location, Duplicates, Zeros, Negative Integers, Mixed Integers, Edge Cases) follwoing the ArrMin.tst (Sample Test Case) that have been provided below.

ArrMin.asm

ArrMin.asm // Finds the smallest element in the array of length R2

ArrMin.cmp

whose first element is at RAM [R1] and stores the result in

ArrMin.tst (Sample Test Case)

R. // (R0, R1, R2 refer to RAM [0], RAM [1], and  
 

ArrMin.asm // Finds the smallest element in the array of length R2 whose first element is at RAM [R1] and stores the result in R. // (R0, R1, R2 refer to RAM [0], RAM [1], and RAM [2], respectively.) 3 // Put your code here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To complete the assignment Ill first provide the assembly code for the problem statement Then Ill suggest seven different test cases to cover all the scenarios mentioned ArrMinasm Assembly Code to Fin... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!