$s0 - holds value of 128 (see top of image)
No additional information has been provided by the textbook to answer the following questions.
Any help for any of the following questions is appreciated!
2.13
2.13.1
given $s0 holds value 128
instruction add $t0,$s0,$s1 will add $s0,$s1 and store it in $t0 the maximum value an integer can hold in mips is upto 2^32 - 1 digits so the maximum value upto which $s1 holds is 2,147,483,519 and minimum value is -2147483776
The range value is -2^31-128>$s1 >2^32-128
2.13.2
instruction sub $t0,$s0,$s1 will subtract $s1 from $s0 and store it in $t0 i.e $t0 = $s0-$s1
the range of s1 is -2^32+128>$s1>2^31+128
2.13.3
instruction sub $t0,$s1,$s0 will subtract $s0 from $s1 and store it in $t0 i.e $t0 = $s1-$s0
the range of s1 is -2^31+128>$s1>2^32-128
$s0 - holds value of 128 (see top of image) No additional information has been provided by the textbook to answer the f...
ARMv7 Assembly 2.12 Assume that X0 holds the decimal value 128. For the instruction ADD X9,X0,X1, what is the range(s) of values for X1 that would result in overflow? Please go IN DEPTH on explanation as texbook sucks and I'm having a tough time wrapping my head around this material.