subject

Write a mips assembly language program that adds the following two integers and displays the sum and the difference. in the .data section, define two variables num1 and num2 both words. initialize num1 to 92413 10 and num2 to d4b 16 (use 0xd4b to initialize, note that d4b is a hexadecimal number). your main procedure/function should load the values of num1 and num2 into two temporary registers, and display them on the console window. then add the values together, and use syscall for the print_int system call function to display the sum on the console window. also compute the difference of two numbers and display it on the console window. (reference: see assignment 1) to print an integer on the console window, you must put the integer to be printed in the $a0 register, and the value 1 in the $v0 register. then perform a syscall operation. this makes a call to the spim operating system which will display the integer in $a0 on the console window. name your source code file assignment2.s.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:10
Write a method that accepts a string object as an argument and returns the number of words it contains. for instance, if the argument is "four score and seven years ago", the method should return the number 6. demonstrate the method in a program that asks the user to input a string and then passes that string into the method, printing out whatever the method returns.
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
You know the right answer?
Write a mips assembly language program that adds the following two integers and displays the sum and...
Questions
question
History, 12.07.2019 15:20
question
Computers and Technology, 12.07.2019 15:20
question
Mathematics, 12.07.2019 15:20