Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
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
Hm...This should work... You do do this inside of a function, correct? (i.e, not globally as shown in your example code?) If so, then it should work just fine...
Okay, that looks better but I am still getting the same error. I sure wish I knew what I was doing haha! again, I am open to any suggestions that anyone might have.
Okay, that looks better but I am still getting the same error. I sure wish I knew what I was doing haha! again, I am open to any suggestions that anyone might have.
I kind of expected that. What complier do you have?
I am using MSVC++ 2005, which is the code I posted.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
I am using the exact same development enviroment you are, that is why I was using your tutorials to get started. you just haven't covered this part in detail yet.
I did get it working. I was thinking about what you said about the global vs. local, everything except for the struct definition was local operation inside a funciton. I double checked and the struct was defined as a part of the class. I moved it to inside the constructor and now it is working. Next step keyboard map thanks for the help