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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, Machuco127
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
image
Computers and Technology, 23.06.2019 00:00, brooklyn4932
What engine component is shown in the above figure?
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, abelxoconda
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, AM28
Does read theory have answers keys ?
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 in other subjects:

Konu
Mathematics, 12.03.2021 19:20
Konu
Chemistry, 12.03.2021 19:20
Konu
Physics, 12.03.2021 19:20
Konu
Mathematics, 12.03.2021 19:20
Konu
Mathematics, 12.03.2021 19:20