Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:00, sabahfayaskhan
Which best describes the condition under which the unicode output is the same as plain text?
Answers: 3
image
Computers and Technology, 23.06.2019 14:00, savannnab1890
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, jadaroyval
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
Do you know the correct answer?
Write a mips assembly language program that adds the following two integers and displays the sum and...

Questions in other subjects:

Konu
History, 11.10.2019 17:10