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

  Service 02H (decimal 2) sets the position of the cursor using row and
  column coordinates. In text modes, multiple display pages can exist, each
  one having an independently recorded cursor position. Even though the
  graphics modes have no visible cursor, they keep track of the logical
  cursor position in the same way as the text modes. This logical cursor
  position is used to control character I/O.

  The cursor position is specified by placing a row number in register DH, a
  column number in DL, and a display page number in BH. The numbering for
  the rows and columns begins with coordinates 0,0 in the top left corner.
  The graphics modes also use the character row and column coordinates to
  identify the cursor location, rather than pixel coordinates. The display
  page number must be set to 0 in CGA-compatible graphics modes, although
  the EGA and VGA both support multiple display pages in 16-color graphics
  modes as well as in text modes.

  See Figure 9-3 for a summary of register settings. See page 87 for more
  on display pages. See service 03H for the reverse operation: Read cursor
  position.

  Service Number           Parameters
  --------------------------------------------------------------------------
  AH = 02H                 DH = row number
                           DL = column number
                           BH = page number
  --------------------------------------------------------------------------

  Figure 9-3.  Registers values for setting the cursor position using
  service 02H.

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