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, 22.06.2019 10:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
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
Mathematics, 23.04.2020 23:56
question
Mathematics, 23.04.2020 23:56
question
Mathematics, 23.04.2020 23:56
Questions on the website: 13722363