Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Assume the following values are stored in memory, and in registers as follows: A 16 element int array alpha is stored in memory starting
1. Assume the following values are stored in memory, and in registers as follows: A 16 element int array alpha is stored in memory starting with address 0x1000. Assume the current values of the array are: alpha[0] = 1, alpha[1] = 2, alpha[2] = 3, alpha[3]=4, alpha[4] =5, all other elements of alpha are 0. An int variable i is stored at address Ox1040 and has a value of 2. Register values: r0 =10, rl = 0x1000, r2 = 3, r3 = 4 Fill in the following table showing the values for the individual operands. Destination Value (in hexadecimal) Instruction mov r2, #16 Idr r3, = i Idr r3,= alpha; Idr r2,[r3, #8] add r2, r3,#1 Idr ro, [r1] add r2,r2,#1; str r2,[r1,#12] (of 2nd instr) (of 2nd inst)
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