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 10h Function 04h
 ◄Detail►                                    ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   10h     Function:   04h
 
  Title:       Get Light Pen Position
 
  Description:                                        [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)
                                    -♦-