Question: Consider the following MIPS assembly codes .data a: .word -10 b: .word 8 e: .byte -10 .text lw $s0,a lw $s1,b lw $s2,e lb $s3,e
Consider the following MIPS assembly codes .data
a: .word -10
b: .word 8
e: .byte -10
.text
lw $s0,a
lw $s1,b
lw $s2,e
lb $s3,e
add $t1,$s2,$s1
add $t2,$s3,$s1 a)Observe that after executing the program $s2 has 0x000000f6 and $s3 has 0xfffffff6. Explain Why? b)Observe that we are performing the same mathematical operation, (-10+8), and storing the results in $t1 and $t2, respectively. Check which one has the correct result. Explain why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
