subject
Computers and Technology, 11.03.2021 14:40 23s40

QUESTION 1 Following is a simple program to add two integers. Write this code into MARS and answer the following
questions
data
num 1: word 54
num2: word 40
text
lw $so, num1
lw $s1 num2
add Ss2 S50, Ss1
li $v0,1
move Sa0,$s2
syscall
a. What is the address and size of num1 and num2?
b. What is the address of the instruction IwSs0, num 1
c. What is the machine code for instruction add Ss2 Ss0 Ss1
d. What is the purpose of instruction li Svo.1
e. Why do we need to use the instruction move Sa0. Ss2

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
What is the requirement for self-contained recovery devices
Answers: 1
question
Computers and Technology, 25.06.2019 11:10
1. when you see a sign colored yellow, you should: o a. adjust your driving for the condition indicated b. figure out if you're nearing your destination o c. obey the prohibition indicated on the sign
Answers: 1
You know the right answer?
QUESTION 1 Following is a simple program to add two integers. Write this code into MARS and answer...
Questions
question
History, 27.10.2019 03:43
question
English, 27.10.2019 03:43
question
Mathematics, 27.10.2019 03:43
Questions on the website: 13722367