Question: The simple exception handler always jumps back to the instruction following the exception. This works fine unless the instruction that causes the exception is in
The simple exception handler always jumps back to the instruction following the exception. This works fine unless the instruction that causes the exception is in the delay slot of a branch. In that case, the next instruction is the target of the branch. Write a better handler that uses the EPC register to determine which instruction should be executed aft er the exception.
Step by Step Solution
3.34 Rating (166 Votes )
There are 3 Steps involved in it
Exception handlers also known as trap handlers or interrupt handlers can easily be incorporated into a MIPS program This guide is not intended to be comprehensive but provides the essential informatio... View full answer
Get step-by-step solutions from verified subject matter experts
