USE of IDT

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.
Post Reply
Imran

USE of IDT

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:USE of IDT

Post 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 ...
adeelmahmood1

Re:USE of IDT

Post 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
Adi

Re:USE of IDT

Post 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!
Post Reply