Question: please do in C Create a program that simulates the use of an interrupt vector. Use an array of structs to hold the information that
please do in C
Create a program that simulates the use of an interrupt vector. Use an array of structs to hold the information that represents the IVT.
Create an interrupt vector table that contains the number of the interrupt (0 255), a name for the interrupt and starting address (program counter value) of the interrupt handler. For this program use starting addresses between 1024 and 4095. To be realistic, make your starting addresses 4 units separated.
When your program runs, the user is repeatedly given the option to input a number representing an interrupt number. The program will search the IVT to retrieve and print the name of that interrupt and its starting address. Run through your loop at least 5 times, using a for loop, or continue until the user wishes to stop, using a while loop.
Your table will contain at least eight entries that you assign.
Here are some typical names for interrupts: divide error, overflow, breakpoint, system timer, single step, page fault, stack segment overrun, co-processor not available. You are also free to make up your own.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
