Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with this MIPS ASSEMBLEY CODE. YOU CAN ONLY USE LOOPS NO OTHER FUNCTIONS ARE ALLOWED. READ THE WHAT NOT TO USE SECTION!!!!
I need help with this MIPS ASSEMBLEY CODE. YOU CAN ONLY USE LOOPS NO OTHER FUNCTIONS ARE ALLOWED. READ THE WHAT NOT TO USE SECTION!!!!
You are tasked to calculate a specific algebraic expansion, ie compute the value of and
for the expression:
without using any native multiplication instructions, subroutines, and function calls. More
formally, write MIPS assembly code that accepts four positive integers A B C and D as input
parameters. The code shall execute in MARS to prompt the user to enter four positive integers
represented in decimal, each separated by the Enter key. The program shall calculate
and using your own self written multiplication routine. The program
will then output and in decimal and binary, using syscall for each output. Hint: use syscall
to print in binary
What not to use: any of mul mul.d mul.s mulo, mulou, mult, multu, mulu, div, divu, rem,
sllsllv sra, srav, srl srlv The goal to compose your own division technique. In addition, use of
a loop is required for credit to realize the multiplication code. Do not use Macros, Subroutines,
or Functions in this project.
Sample output for Part A is:
Enter integers for respectively:
ften
ftwo
gten
gtwo
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