Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 15 - system - read joystick (at,xt2,xt286,ps) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 15 - SYSTEM - READ JOYSTICK (AT,XT2,XT286,PS)
        AH = 84h
        DX = subservice
            0000h get switch settings
                Return: AL = switch settings
                            bit 7: stick B button 2
                            bit 6: stick B button 1
                            bit 5: stick A button 2
                            bit 4: stick A button 1
            0001h read joystick inputs
                Return: AX = A(x) value
                        BX = A(y) value
                        CX = B(x) value
                        DX = B(y) value

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson