Languages Assembler x86 Programming Sourcecode Keyboard & Mouse  

PS/2 Mouse ('Real' mode) (no int 33h)

download download  
important code information
author:
Erik
minimum requirements:
PS/2 Mouse ('Real' mode) (no int 33h) description

This program is made for people who want to make their own drivers for an PS/2 port without using the int 33h. ( easy to understand example, I hope ;) ) For use in own OS or MS-DOS enviroment. This is educational perpose version and the effects of the program are undefined. By downloading the program the downloader downloads it at his own risk.


[Little disclaimer reminder]
I remind you that this code might cause unforeseen problems, although it was
made with the intention to function right. If you use this code, you use this code at your own risk!

[INTRO]
I made this program only for educational use. This becource there is lots of info to find on the internet but there is no 'real' example program for less advanced asm-programmers. (or i couldn't find it :S)

In the most programs i found was explained how to use the int 33h function, but since this is created by a driver I couldn't use it for my own purpose. (building an OS)

By the way: If you have problems with understanding the code see the ouseprog i made for COM-mouse

[Contents]
In the included .ASM file I show how to use the PS/2-mouse with an Standard PS/2-protocol. Since there are too many protocols available this program wont cover all. I only choose the Standard PS/2-protocol becouse most of my mice would run on this.

The .ASM file is an uncompiled .COM file for only use in MS-DOS. Since I had problems getting it running under XP. This .ASM file can be compiled using NASM
________________________________
>if you are running under Win9X<
Restart in dos mode.
_____________________________
>if you are running under XP<
Download a dos bootdisk, internet search, and put this file on that disk and try booting from the floppydisk.

[PS/2-Port Control]
For more info on controlling the PS/2-Port, I recommend u to download the "Ralf Brown Interrupt List". (most internet search engines will find this)

In this list are also ports included. This list covers many if not all of the interrupts and ports, this was very usefull to me for building my OS. (Yust a recommendation, nothing more)

[Stream Mode of PS/2 mice]
In stream mode, the mouse sends movement data when it detects movement or a change in state of one or more mouse buttons. The maximum rate at which this data reporting may occur is known as the sample rate. This parameter ranges from 10 samples/sec to 200 samples/sec. Its default value is 100 samples/sec and the host may change that value by using the "Set Sample Rate" (0xF3) command.
Stream mode is the default mode of operation of an standard PS/2-Mouse.


File List:
Readme.txt2Kb
psmouse.asm15Kb

Similar code
MS mouse (Real-mode) (no int 33h) (Popularity: ) : This program is made for people who want to make their own COM-Port Mouse Driver without having to make use of int33h. This program is a beta version, sow unforeseen problems may occur. By downloading the program the downloader downloads ...
Easy Code Masm (Popularity: ) : Supporting Unicode, multiple languages and driver programming. Excellent visual assembler IDE for Windows 95/98/ME/NT40/2K/XP/VISTA/7 (32/64 bit) entirely programmed in assembly. Complete integrated resource editor, all common controls, align, copy, paste, delete groups of controls. Resource files (.rc) can be imported. ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 439
version 0.02
size in Kb 5
popularity   8452/7913374
user rating 5/10
ad


New Code
Popular Code