Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 15h Function C2h Subfunction 06h
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   15h     Function:   C2h     Subfunction:   06h
 
  Title:       Set Scaling or Get Status
 
  Description:                                                    [PS/2]
 
     Returns the current status of the system's mouse or other pointing
     device or sets the device's scaling factor.
 
     Input                              Output
 
     AH = C2h                            If function successful
     AL = 06h                              Carry flag: clear
     BH = Extended command                 AH = 00h
          00h = Return device status     And if called with BH = 00h
          01h = Set scaling at 1:1         BL = Status byte
          02h = Set scaling at 2:1
                                                Bits   Significance
 
                                                0     = 1 if right button
                                                        pressed
                                                1     = Reserved
                                                2     = 1 if left button
                                                        pressed
                                                3     = Reserved
                                                4     = 0 if 1:1 scaling
                                                      = 1 if 2:1 scaling
                                                5     = 0 if device
                                                        disabled
                                                      = 1 if device
                                                        enabled
                                                6     = 0 if stream mode
                                                      = 1 if remote mode
                                                7     = Reserved
 
                                           CL = Resolution
                                                00h = 1 count per
                                                      millimeter
                                                01h = 2 counts per
                                                      millimeter
                                                02h = 4 counts per
                                                      millimeter
                                                03h = 8 counts per
                                                      millimeter
                                           DL = Sample rate
                                                0AH = 10 reports
                                                      per second
                                                14h = 20 reports
                                                      per second
                                                28h = 40 reports
                                                      per second
                                                3CH = 60 reports
                                                      per second
                                                50h = 80 reports
                                                      per second
                                                64h = 100 reports
                                                      per second
                                                C8h = 200 reports
                                                      per second
 
                                          If function unsuccessful
                                            Carry flag: set
                                            AH = Status
                                                 See: Int 15h Function C2h
                                                      Subfunction 00h
                                    -♦-