In: Computer Science
Consider the following code:
sw $8, 4($16)
addi $16, $16, 4
Iw $9, 0($16)
e. Which of the following is true?
1. After executing the above code, the contents of $8 and $9 will be same
2. After executing the above code, the contents of $16 will be incremented by 4
3. All of the above instructions are I type instructions.
4. All of the above statement are true
Answer :
sw $8,4($16)
addi $16,$16,4
lw $9,0($16)
e.which of the following is true?
1.After executing the above code,the contents of $8 and %9 will be same.
2.After executing the above code,the contents of $16 will be incremented by 4.
3.All the above instructions are I type instructions.
4.All the above statements are true
Answer :
4.All the above statements are true
Explanation :
sw $8,4($16)
addi $16,$16,4
lw $9,0($16)
After executing the above code,the contents of $8 and %9 will be same.After executing the above code,the contents of $16 will be incremented by 4.All the above instructions are I type instructions.