Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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