INT 15 - POINTING DEVICE BIOS INTERFACE (PS,DESQview 2.x)           

Input

Output

AX

C2h 00h Status   AX

BX

0=Enable, 1=Dis       BX

CX

        CX

DX

        DX
ES:DI   Set on Error CF
Enable / Disable

Input

Output

AX

C2h 01h Status   AX

BX

    Device ID   BX

CX

        CX

DX

        DX
ES:DI   Set on Error CF
Reset

Input

Output

AX

C2h 02h Status   AX

BX

 Sampling Rate       BX

CX

        CX

DX

        DX
ES:DI   Set on Error CF
Set Sampling Rate

Sampling Rates:

        00h = 10/second
        01h = 20/second
        02h = 40/second
        03h = 60/second
        04h = 80/second
        05h = 100/second
        06h = 200/second

Input

Output

AX

C2h 03h Status   AX

BX

 Resolution       BX

CX

        CX

DX

        DX
ES:DI   Set on Error CF
Set Resolution

Resolutions:

        00h = One count per mm
        01h = Two counts per mm
        02h = Four counts per mm
        03h = Eight counts per mm

Input

Output

AX

C2h 04h Status   AX

BX

    Device ID   BX

CX

        CX

DX

        DX
ES:DI   Set on Error CF
Get Type

Input

Output

AX

C2h 05h Status   AX

BX

 Data Pack Size       BX

CX

        CX

DX

        DX
ES:DI   Set on Error CF
Initialize

Data Package Size = 1 - 8 bytes

Input

Output

AX

C2h 06h Status   AX

BX

 00h     Device Status BX

CX

      Resolution CX

DX

      Sample Rate DX
ES:DI   Set on Error CF
Return Device Status
Device Status
Bit Dec Hex  Description
0 1 01h  Right button pressed
1 2 02h  Reserved
2 4 04h  Left button pressed
3 8 08h  Reserved
4 16 10h  Scaling: 0 = 1:1, 1 = 2:1
5 32 20h  Device enabled
6 64 40h  Mode: 0 = Stream, 1 = Remote
7 128 80h  Reserved

 

Input

Output

AX

C2h 06h Status   AX

BX

 01h     Device Status BX

CX

      Resolution CX

DX

      Sample Rate DX
ES:DI   Set on Error CF
Set scaling at 1:1

Input

Output

AX

C2h 06h Status   AX

BX

 02h     Device Status BX

CX

      Resolution CX

DX

      Sample Rate DX
ES:DI   Set on Error CF
Set scaling at 2:1

Input

Output

AX

C2h 07h Status   AX

 

        BX

CX

        CX

DX

        DX
ES:BX User Device Handler Set on Error CF
Set Device Handler Address

Status Codes:

        00h = Successful
        01h = Invalid function
        02h = Invalid input
        03h = Interface error
        04h = Need to resend
        05h = No device handler installed


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .