USE of IDT
USE of IDT
In my OS , I want that on int 13 , mouse will be initialized and work. then how to write code for using mouse.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:USE of IDT
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 ...
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
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
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
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!
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!