Help with mouse

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
MrLolthe1st
Member
Member
Posts: 90
Joined: Sat Sep 24, 2016 12:06 am

Help with mouse

Post by MrLolthe1st »

Can you help me, i dont know how to work with ps/2 mouse in real mode. Can you help me with it? :roll:
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Help with mouse

Post by iansjack »

User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Help with mouse

Post by BrightLight »

The fact that you're in real mode is irrelevant. Unlike the keyboard, AFAIK, there are no BIOS functions for the mouse.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Help with mouse

Post by onlyonemac »

omarrx024 wrote:The fact that you're in real mode is irrelevant.
Until you start dealing with IOPL. But no, the mouse doesn't work any differently in real mode vs any other mode (neither does any other hardware, really, except that most people in real mode use the BIOS to access hardware and the way you write your code for interacting with hardware directly may need to be different depending on which mode you're in).
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Post Reply