Page 1 of 1
USE of IDT
Posted: Thu Apr 10, 2003 3:27 pm
by Imran
In my OS , I want that on int 13 , mouse will be initialized and work. then how to write code for using mouse.
Re:USE of IDT
Posted: Thu Apr 10, 2003 3:35 pm
by Pype.Clicker
basically, wait for a mouse hardware IRQ to occur (either IRQ12 or COMx interrupt), then read the bytes the mouse has sent (here again, serial mice and PS/2 mice differ).
Once the bytes are read, you must decode them according to the mouse protocol, usually they look like "X movement, Y movement, button status" ...
I would recommend you the reading of Operating System Resource Center pages (see .:QuickLinkz:.)
btw, i'm not sure of what you were meaning with your INT13 stuff, nor with the "use of idt" title of your thread ...
Re:USE of IDT
Posted: Thu Apr 10, 2003 10:41 pm
by adeelmahmood1
basically u need to study what actually an IDT is ..
search for articles about interrupt descriptor table on google and ull find alot of useful resources..
there is an IDT kernel on
osdev.neopages.net .. download that and study how it works i have my IDT setup in my OS so u can also check that out too
hope it helps
Re:USE of IDT
Posted: Fri Apr 11, 2003 4:17 am
by Adi
Attn: adeelmahmood1
Hi I went through your code! I am surprised and sorry to say that you made copyrighted code as open source project!
Core Code mainly belongs to Alexei A. Frounze (c) 2000! Be sure about what you are doing!