Question: in C programming language Here are a few pointers I would like to make to clear up the expectations for program #1: First build a
in C programming language
Here are a few pointers I would like to make to clear up the expectations for program #1:
First build a table prompting the user for input. I would start out with 3 values at first and create a table that eventually looks like this:
Overflow 1024
Breakpoint 1028
Step 1032 ... notice that the user enters the interrupt name and an integer which represents a starting address
Your table only needs 8 entries in it. You can choose the starting address and the name. Don't put a space in the interrupt name: Breakpoint instead of Break point. The starting addresses only need to "pretend" to be realistic... some realistic addresses are between 1024 and 4095, for example.
You can include an integer to represent an interrupt number so that your table looks like this:
0 Overflow 1024
1 Breakpoint 1028
2 Step 1032 ...
After you have built this table, print it out so the person who runs your program can see your table contents that are nicely formatted.
2. Now write code to search for a given interrupt number. Prompt the user to enter an interrupt number. If that number is valid, print out the interrupt name and the starting address for that number, if not print an error message. For example your session may go like this:
>Enter an interrupt number (for now between 0 and 2):
>2
> The starting address for interrupt 2, Step is 1032
>Do you wish to continue? (type yes or no)
> yes
>Enter an interrupt number (for now between 0 and 2):
>18
>18 is not a valid interrupt number
>Do you wish to continue? (type yes or no)
> yes
>Enter an interrupt number (for now between 0 and 2):
>0
... until the user wants to stop
3. Once you have this working for 3 entries, go on to build your table to contain 8 entries. The idea is to start small, get it working, then finish out with detail.
Capture this complete session including the initializing of your IVT.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
