Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        Read light pen position (all but PS)

        Entry:
          AH = 04h
        Return:
          AH = 0: Light pen switch not activated
          AH = 1: Light pen values in registers
                    DH = row of current position
                    DL = column of current position
                    CH = raster line (0-199) (EGA) old graphics modes
                    CX = (EGA) raster line (0-nnn) new graphics modes
                    BX = pixel column (0-319 or 0-639)
          SI,DI,BP destroyed by call

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