Question: main: # Case 1: positive x positive = positive: addi $s2, $zero,2 # $s2 = 0 + 2 = 2 addi $s3, $zero,3 # $s3

main: # Case 1: positive x positive = positive: addi $s2, $zero,2 # $s2 = 0 + 2 = 2 addi $s3, $zero,3 # $s3 = 0 + 3 = 3 mult $s2, $s3 # (2 points) verify with MARS: Hi = Ox ; Lo = Ox # Case 2: positive x negative = negative: addi $s2, $zero, 2 # $s2 = 2 addi $s3, $zero,-3 # $s3 = -3 (=fffffffd) (2's complement) mult $s2, $s3 # (2 points) verify with MARS: Hi = 0x ; Lo = Ox # Case 3: negative x negative = positive: addi $s2, $zero,-2 #$s2 = -2 (= ffff fffe) (2's complement) addi $s3, $zero,-3 # $s3 = -3 (=ffff fffd) (2's complement) mult $s2, $s3 # (2 points) verify with MARS: Hi = Ox ; Lo = Ox wait: j wait # wait
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
