qa.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 10H Function 04H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Light Pen Position     [CGA] [PCjr] [EGA]
 
  Obtains the current status and position of the light pen.
 
  Input             Output
  ══════            ═══════════════════════════════════════════════════
  AH=04H            AH=00H if light pen not down/not triggered
                      =01H if light pen down/triggered
                    BX=pixel column (graphics x coordinate)
                    CH=pixel row (graphics y coordinate, modes 04H-06H)
                    CX=pixel row (graphics y coordinate, modes 0DH-10H)
                    DH=character row (text y coordinate)
                    DL=character column (text x coordinate)
                                    -♦-