Page 1 of 1

Begin by making a copy of the file called trap.handler: call the copy trap.handler.original. You will work on the file t

Posted: Mon May 02, 2022 12:20 pm
by answerhappygod
Begin by making a
copy of the file called trap.handler: call the copy
trap.handler.original. You will work on the file
trap.handler which the SPIM simulator loads by default.
Look at the file and, based on what you see, try to answer a few
questions. The ‘.set noat’ assembler directive instructs the
assembler not to complain about using the $at
register (which is reserved for the assembler’s usage).
Q3: Since a syscall
creates an exception, do you think it is appropriate to have
syscalls inside an exception handler? Explain.