Design, write, and test a program in MIPS which requests and reads two integer values from the user, multiply the values together, and then outputs the results.
//Tested on Mars simulator
//user should have knowledge about register and instruction set
/************multiplication.asm*************/
.data
prompt: .asciiz "please Enter first
number:"
prompt1: .asciiz "Please Enter second
number:"
message: .asciiz "Multiplication is:"
.text
#Prompt the user to enter first
number
li $v0,4 #4 for string
la $a0,prompt
syscall
#Storing first number
li $v0,5 #5 for integer
syscall
#Store the result in $t0
move $t0,$v0
#Prompt the user to enter Second
number
li $v0,4 #4 for string
la $a0,prompt1
syscall
#Storing second number
li $v0,5 #5 for integer
syscall
#Store the result in $t1
move $t1,$v0
#multiply both number and storing result
into $t2
mul $t2,$t1,$t0
#displaying message
li $v0,4
la $a0, message
syscall
#printing multiplication
li $v0,1
move $a0,$t2
syscall
/***************output***********/
please Enter first number:10
Please Enter second number:3
Multiplication is:30

Thanks a lot. If you have any doubt please let me know
Design, write, and test a program in MIPS which requests and reads two integer values from...
In MIPs, design, write, and test a program which requests and reads two integer values from the user, multiply the values together, and then outputs the results.
Write a C program as follows: Single source code file Requests the user to input two integer numbers Requests the user to make a choice between 0 (add), 1 (subtract), or 2 (multiply) Declares three separate functions Uses a pointer to these three functions to perform the requested action Outputs the result to the screen Submit your program source code file to this assignment. Sample Output Enter first integer number: 15 Enter second integer number: 10 Enter Choice: 0 for...
Write and submit a MIPS Assembly Language program which requests an integer (year) from the user and then invokes a function to determine the beginning date and time of each season. The program must be properly documented which includes in file comments. Note: This is a Computer Science/Engineering course, not a Physics/Astronomy course. The exact time is not expected. Approximations are acceptable. Document your calculation process in the report. Basically, the intent is that you store a reference date and...
Write a program that reads two integer values. It then calculates and displays the sum and average of all values between them, Le. if the first value is vi and the second value is 2, then the program calculates and displays the sum and average of all values in the closed range Iv1,2 Your Program must satisfy the following constraints: A. make sure that v1 is less than 2 B. Use a function named getStats(that takes two integer yalues as...
Write a Java program that reads in a positive integer from the user and outputs the following triangle shape composed of asterisk characters. For example, if user enters 5 as the input, then your program should display the following shape: ***** **** *** ** *
Write a program that reads from the keypad an integer and calculates the following: If the number given by the user is even, then divide it by 2. If it is an odd number, multiply it by 3 and add 1.The program should repeat this procedure for the calculated new result (which will be printed on the screen) until it reaches number 1. The program will also need to print out how many steps it took overall.
Q-1: Write a program in Assembly language using MIPS instruction set that reads 15 integer numbers from user and stores all the numbers in the array intArray. Now, read another integer number N from the user, find the total number of array elements that are greater or equal to the number N, and the total number of array elements that are lower than the number N You must have two procedures: i. ReadIntegerArray: this procedure should read integer array elements...
Write a MIPS program that reads (with an appropriate prompt) a sequence of 20 integers and stores them in an array, and then calls the following two functions and prints the results in a readable format. The two functions are: smallestLargest: computes the smallest and the largest values in the array. oddEven: computes the number of even integers and the number of odd integers.
In Python 3 - Write a program that reads a sequence of integer inputs from the user. When the user is finished entering the integers, they will enter a 'q'. There is no need to check if the entry is a valid integer. All integers in the test data (input) will be between -255 and 255. The program should then print: The smallest and largest of the inputs. The number of even and odd inputs (0 should be considered even)...
1- Write a mips program to read two integers from the user, and print the smaller one
1- Write a mips program to read two integers from the user, and print the smaller one