Help with mouse
-
- Member
- Posts: 90
- Joined: Sat Sep 24, 2016 12:06 am
Help with mouse
Can you help me, i dont know how to work with ps/2 mouse in real mode. Can you help me with it?
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Help with mouse
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.
-
- Member
- Posts: 1146
- Joined: Sat Mar 01, 2014 2:59 pm
Re: Help with mouse
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).omarrx024 wrote:The fact that you're in real mode is irrelevant.
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
Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing