Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
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
                                    -♦-