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 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
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
Mathematics, 20.10.2020 05:01
question
Social Studies, 20.10.2020 05:01
question
Social Studies, 20.10.2020 05:01
question
Mathematics, 20.10.2020 05:01