@@@@ ##₹8.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
@@@@@
##₹8.

Transcribed Image Text:ZOOM
+
Project 1 Part A
You are tasked to calculate a specific algebraic expansion, i.e.compute the value of f and g for
the expression:
f = (AxA-BxC)
g= (AxD+7xC)
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-
BxD) and g=(AXD+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 to use: any of {mul, mul.d, mul.s, mulo, mulou, mult, multu, mulu, div, divu, rem, sll,
sllv, 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 4 integers for A, B, C, D respectively:
15
9
21
3
f_ten = 36
f_two = 00000000000000000000000000010100
g ten = 192
g_two = 00000000000000000000000011000000
Submit the code as an .asm file in Webcourses Assignments. The submitted program shall
provide outputs in exactly the sequence and format shown above. To receive full credit, no
additional superfluous outputs shall occur. (15 points for accurate output formatting, 10 points
for code comments, 75 points for correct values of outputs)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY