Skip to main content
gamedev.net
🔒 Locked

Interrupts

Started by Witchcraven 6 replies 300+ views
Original Post
Witchcraven
Witchcraven
I am learning assembly, for the purpose of writing an OS. It''s going pretty well. My question is how does the interrupt controller find the interrupt vector table?
--------------------------I present for tribute this haiku:Inane Ravings OfThe Haunting JubilationA Mad Engineer©Copyright 2005 ExtrariusAll Rights Reserved
Gladiator
Gladiator
The interrupt vector table (IVT) starts at memory adresss 0.
VolkerG
VolkerG
in protected mode (as far as i can remember) there exists an register that stores the location of the IDT (interrupt descriptor table). look for the LIDT instruction in this case. By the way, why is it in the Game Programming forum?

[edited by - VolkerG on October 30, 2002 5:35:06 PM]
elis-cool
elis-cool
Hey man, your developing an OS, and dont know about this forum!? its really the best out there for OS dev, might want to check it out...
[email=esheppard@gmail.com]esheppard@gmail.com[/email]
jplocster
jplocster
What platform? Intel, MicroChip, Motorola, AMD, etc .... They all do stuff their own way, best to just consult the documentation. I am only familiar with Motorola and Microchip.
Witchcraven
Witchcraven
thanks for the help. Heres a question, when the comp starts in realmode, interrupts work. When I switch to PM, why do they not work. I would guess because I need to load that IDTR register, can anyone confirm that.
--------------------------I present for tribute this haiku:Inane Ravings OfThe Haunting JubilationA Mad Engineer©Copyright 2005 ExtrariusAll Rights Reserved
elis-cool
elis-cool
because pmode uses an IDT not an IVT... so you need to set that up first...
[email=esheppard@gmail.com]esheppard@gmail.com[/email]
Shannon Barber
Shannon Barber
Interrupt Descriptor Table as opposed to an Interrupt Vector Table

The IVT only starts at 0 for <286''s For 386+ you have to set the special IDRT register (though one would hope out-of-the-box it''s initialized to zero).
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.