Please need help understanding
how this code works
Please find the answer below.
Please do comments in case of any issue. Also, don't forget to rate
the question. Thank You So Much.
code execution is as below
addu $t1,$t2,$t3 #add both numbers
nor $t4,$t2,$zero#get once compliment of t1
sltu $t5,$t4,$t3 #now check if once compliment of t1 is less than
t3
bne $t5,$zero,exception1_processing #if yes through exception
nop
exception1_processing:
Hence the given code is checking if adding t2 and t3 causes over flow or not. If it will cause , Than it will throw exception1_processing.
And exception would be . . Overflow occured.
Please need help understanding how this code works a. Analyze the following ode and find out...
a. Analyze the following MIPS code and find out what exactly it is doing. Explaining what each MIPS instruction does literally is not enough, you need to explain how it contributes to the overall logic. (4 Marks) adddu $t1, $t2, $t3 nor $4, $t2, Szero situ St5, St4, St3 bne St5, Szero, exception1_processing What is the specific exception that is being processed at the label exception1_processing?