09. Exceptions and traps
Copy exception handler code from lecture and modify it to output «bad address» when illegal memory read/write exception is occurred
Write a macro sqrt.t.s %freg1 %freg2 that traps while performing single-precision float sqrt.s. Write a demo program than repeatedly inputs a float then prints square root of it, and exception handler prints "Square root from negative" when such a trap emitted, and exit execution otherwise (e. g. on illegal input)