Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write MIPS assembly code that accepts four positive integers A, B, C You are tasked to calculate a specific algebraic expansion, ie. compute the value

write

MIPS assembly code that accepts four positive integers A, B, C

image text in transcribed

image text in transcribed

You are tasked to calculate a specific algebraic expansion, ie. compute the value of f and g 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 f-(AxA-BD) and gr(AD-6xC) using your own self written multiplication routine. The program will then output f and g in decimal and binary, using syscall for each output. What not use any of {mul, mul.d, mul.s, mulo, mulou, mult, multu, mulu, div, divu, rem, sll, sllv, sra, srav, sri, srlvj. 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 4 integers for A,B.C.D respectively: 15 21 f ten- 198 f two- 00000000000000000000000011000110 g-ten = 171 g two-00000000000000000000000010101011

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

What is cost plus pricing ?

Answered: 1 week ago

Question

1. What are the types of wastes that reach water bodies ?

Answered: 1 week ago

Question

Which type of soil has more ability to absorb water?

Answered: 1 week ago

Question

1. Identify outcomes (e.g., quality, accidents).

Answered: 1 week ago