Int 10/AH=04h

lup.gif ldown.gif Interrups Categories Contents

rbline.gif

VIDEO - READ LIGHT PEN POSITION (except VGA)

AH = 04h

Return:
AH = light pen trigger flag 00h not down/triggered 01h down/triggered DH,DL = row,column of character light pen is on CH = pixel row (graphics modes 04h-06h) CX = pixel row (graphics modes with >200 rows) BX = pixel column

Desc: Determine the current position and status of the light pen (if present)

Notes: On a CGA, returned column numbers are always multiples of 2 (320- column modes) or 4 (640-column modes). Returned row numbers are only accurate to two lines

Category: Video - Int 10h - V

rbline.gif

lup.gif ldown.gif Interrups Categories Contents