Arithmetic Overflow in mips

According to the MIPS instruction reference, the only addition operations which can produce overflow exceptions are the signed addition instructions: MIPS integers are 32-bit, and since you’ll be using signed integers, the maximum value is 231-1 (aka 2147483647 or hex 7FFFFFFF). Thus any addition which results in a number larger than this should throw an exception, … Read more

tech