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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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).
Q4: Is there any code
in the exception handler that actually does print an integer
(print_int)? True, there are calls to print_int, but where are they
handled?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply