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)

  1. (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

1 Expert Approved Answer
Step: 1 Unlock 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 Accounting Questions!