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 84h
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   15h      Function:   84h
 
  Title:       Read Joystick
 
  Description:                                               [AT] [PS/2]
 
     Returns the joystick switch settings and potentiometer values.
 
     Input                              Output
 
     AH = 84h                           If function successful
     DX = Subfunction                     Carry flag: clear
        = 00h Read switch settings      And if called with DX = 00h
        = 01h Read resistive inputs       AL = Switch settings (bits 4-7)
                                        Or if called with DX = 01h
                                          AX = A(x) value
                                          BX = A(y) value
                                          CX = B(x) value
                                          DX = B(y) value
 
                                        If function unsuccessful
                                          Carry flag: set
                                    -♦-