LIDT in VC++ ??
Posted: Fri Oct 05, 2007 1:40 pm
okay, I am still looking online but can't find anything so far. I know to load the IDT you simply call
lidt [idt_pointer]
but I can't stick my variable in VC++'s inline assembler. I get 'Improper Operand Type' as an error. here is what I have tried and the deffinition of my idt_pointer
Okay, I have tried both:
and...
neither work. same error.
here is the code defining my pointer
I have also tried making the offset a pointer and have tried to directly make idt_desc a pointer, none of them work and usually cause more errors.
any suggestions would be great.
lidt [idt_pointer]
but I can't stick my variable in VC++'s inline assembler. I get 'Improper Operand Type' as an error. here is what I have tried and the deffinition of my idt_pointer
Okay, I have tried both:
Code: Select all
_asm {
lidt idt_desc
}
Code: Select all
_asm {
lidt [idt_desc]
}
here is the code defining my pointer
Code: Select all
struct
{
unsigned short size;
unsigned long offset;
} idt_desc;
idt_desc.size=(256*8)-1;
idt_desc.offset=(unsigned long )idt;
_asm
{
lidt idt_desc
}
any suggestions would be great.