Question: Need help wrinting the assembly code. The task is to write an assembly program to search the data stored in the memory locations starting from

Need help wrinting the assembly code.
The task is to write an assembly program to search the data stored in the memory locations starting from 0x20001000 to 0x2000101C (total 8 data) for the smallest number and store it to the memory 1 ocation 0x20002000 Assume that the data are stored in the memory at the beginning. Do not assign any specific values to them. The program should be general enough to work with any data in the m Note that a memory address increments by 4, not by 1 Use the for-loop style iteration to scan all memory data in the range Use R0 to store the smallest number Use R1 to count the number of iteration. 1. emory n any order 2. 3. 4. 5. Deliverables Create a-s file Hint 1. lt, le, gt, ge conditions treat numbers signed. For unsigned numbers, use ls or hi. (p158 Textbook) 2. Use the post-offset indirect addressing to fetch data in the memory baseaddr index_increment equ 0x20001000 equ ldr r4, [r2]. #index increment fetch the data and increment r2 address cmp r0, r4 blmove onif r0 is less than r4, move on. If not, replace mov r0, r4 compare r0 and r4 move on sub r1,r1, #1 decrement the counter by one End
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
