Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an assembly language program that runs under MIPSym. It should input two numbers A and B from the keyboard, then calculate 6 different values

Write an assembly language program that runs under MIPSym. It should input two numbers A and B from the keyboard, then calculate 6 different values as follows:

1) Y1 = A + B

2) Y2 = A B

3) Y3 = A * B

4) Y4 = A / B

5) Y5 = A > B

The division operation is an integer division so the decimal value is truncated. The > operations correspond to shift left and shift right respectively. Your program should print each of these 6 values after computing them. Please do NOT use QtSPIM or MARS style syscall conventions. You must use the syscall convention presented in class. For instance to print a string: la $a0,stringaddr syscall $print_string

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago