When I turn on my computer and after the bios boots my system, is the interrupt 9h (in the IVT) pointing to a code that is useful to interrupt 16h (bios), or int 16h uses polling to read the port?
Thanks.
Interrupt 9h and BIOS
Re: Interrupt 9h and BIOS
I don't want to be impacient, but can anyone help me?
Thanks again
Thanks again
-
- Member
- Posts: 524
- Joined: Sun Nov 09, 2008 2:55 am
- Location: Pennsylvania, USA
Re: Interrupt 9h and BIOS
I would guess that it depends on your BIOS. It is probably a good idea not to mess with the lower parts of the real mode IVT unless you no longer want to use the BIOS.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Interrupt 9h and BIOS
Interrupt 9 is an IRQ. On every keystroke (assuming the IF flag in EFLAGS is set), IRQ 9 fires up. In real-address mode, the BIOS interrupt 16H is used (by software) for keyboard services (e.g. stuff like waiting for a keystroke). You could, if you like, write your own handler for IRQ 9 and handle keystrokes at any given time; however, you do need to read on the keyboard controller so you know how to handle the data.
Regards,
Bogdan
Regards,
Bogdan
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Interrupt 9h and BIOS
BIOSes are not multitasking, and they almost never have embedded drivers. So they almost never use IRQs. They almost always use polling. I suspect that if you look hard, though, that you will find exceptions.
And as JohnnyTheDon says, it's smartest just to leave the IVT alone until you are completely in PMode, and you can guarantee that you will never return to Real mode ever again. Then you don't need to worry yourself about how the IVT works.
And as JohnnyTheDon says, it's smartest just to leave the IVT alone until you are completely in PMode, and you can guarantee that you will never return to Real mode ever again. Then you don't need to worry yourself about how the IVT works.
Re: Interrupt 9h and BIOS
thanks for your replies...
Re: Interrupt 9h and BIOS
Well, not quite, it's that IRQ 1 (the keyboard) triggers INT 9 (there's an offset of 8 for IRQs).Love4Boobies wrote:Interrupt 9 is an IRQ. On every keystroke (assuming the IF flag in EFLAGS is set), IRQ 9 fires up
JAL
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Interrupt 9h and BIOS
You're right, I don't know why I said that... IRQ 1 was the IRQ...jal wrote:Well, not quite, it's that IRQ 1 (the keyboard) triggers INT 9 (there's an offset of 8 for IRQs).Love4Boobies wrote:Interrupt 9 is an IRQ. On every keystroke (assuming the IF flag in EFLAGS is set), IRQ 9 fires up
JAL
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]