Question: Use MIPS assembly language that uses an array to store powers of 2 in memory. And then loops over that array to display the numbers.
Use MIPS assembly language that uses an array to store powers of 2 in memory. And then loops over that array to display the numbers.
-Create your program in the arrays_of_twos.asm file.
-Reserve a block of memory big enough to hold all the powers of 2 from 0 to 10.
-use a loop to store the values into the memory array. hint: use the sll instruction to double a value.
-use a second loop to iterate over the memory array outputting the values.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
