Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume that starting at a specific address (the first data is stored starting at an address that is loaded in R1 in the given
Assume that starting at a specific address (the first data is stored starting at an address that is loaded in R1 in the given template) 10 values has been stored in consecutive locations in the memory. Assume the size of values is 4 bytes and memory is byte-addressable. Complete the following template (func) to find if there is a value equal to 55555555H. If such value exists find the address and store the address in register R5 (assume there are not duplicate values), otherwise store the value of O as an indication that this value does not exist in the memory. Your program must return to the main program after running all instructions in func. b: branch, bl: branch with link register 18 19 20 21 22 main 23 stop 24 25 func 31 32 33 H22222222223333 15698961 26 27 28 29 30 ldr rl, data; address of the first data bl func mov r6, r5; result b stop ;--complete this part Condition codes if needed: EQ Equals zero Z-1 NE Not equal to zero Z-0 CS Carry set C=1 CC Carry clear C=0 MI Minus N-1 PL Nonnegative (plus) N-0 VS Overflow V-1 VC No overflow V=0 HI Unsigned higher C-1 and Z-0 LS Unsigned lower or same C=0 or Z=1 GE Signed greater than or equal N=V LT Signed less than N V GT Signed greater than Z-0 and N-V LE Signed less than or equal Z=1 or N+V
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started