Question: Q2 Assume that, there is an existing interrupt handler defined, and the interrupt vector entry points this handler. Your task is to add some computation

Q2 Assume that, there is an existing interrupt handler defined, and the interrupt vector entry points this handler. Your task is to add some computation just before the predefined handler is executed. Assume also that, you cannot update the existing handler. Your code will work every time this interrupt arrives, and then, the control is transferred to the existing handler just after your code. Explain the necessary updates to the interrupt vector, and then, give assembly listing for the additional code. You may define a dummy computational task in your code. The contents of the dummy computation are out-of-focus but you may want to consider the registers changed by this computation. (This implementation will be for 32-bit Intel Architecture.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
