Question: THIS IS SUPPOSED TO BE IMPLEMENTED IN MIPS! # Filename: Multiply.s # Target: MIPS ISA Simulator # Author: # Description: Multiply a hardcoded register value

THIS IS SUPPOSED TO BE IMPLEMENTED IN MIPS! # Filename: Multiply.s # Target: MIPS ISA Simulator # Author: # Description: Multiply a hardcoded register value by 30 using only shifts and a simple add # store preloaded data here if needed (not used in this program). .data result_text: .asciiz "The value of the multiplication is: " # Program body .text .globl main main: # initilization addi $s0, $0, 5 # initialize $s0 = 5 Use this value to multiple by 30 #implement your multipliciation scheme # Print the result # program exit 

4. (20) In part 4 you must make an assembly program that multiplies a stored data value by 30 (start with Multiply.s ). Note you cannot use the multiply command or a simple looped addition routine, you must write the solution to make use of shifts (both left and/or right) and a simple add to get the right multiplier of 30. You will print out your total when finished. Name your new file Lastname-Multiply.s Make sure you comment your code so I (and more so you) understand what you are doing.

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 Databases Questions!