Question: (15 points) Ken is an array of 500 unsigned 32-bit integers. Write a short Arm assembly language program to compute Ken[J] = (Ken[J-1] / 2)
- (15 points) Ken is an array of 500 unsigned 32-bit integers. Write a short Arm assembly language program to compute
Ken[J] = (Ken[J-1] / 2) + (9*J)
for 499 values of J, increasing from 1 to 499. Use a register as variable J, rather than a memory location. Assume that array Ken was previously loaded with data, and that there will be no arithmetic overflows.
AREA Data1,DATA
Ken SPACE 500*4 ;500 unsigned 32-bit integers
AREA Code1,CODE ;your program instructions follow
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
