Wanna quick solution to identify overflows? – Use RISC-V branches

The final instruction which is ‘bne’ is ‘branch if not equal’ which is essentially means to branch to a different address location pointed by ‘overflow’, if t3 is not equal to t4, which is the case here. So, here’s where the overflow is detected and an error message will be printed out, informing ‘you are out of range’

Continue reading