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 0EH (decimal 14) is the workhorse service of conventional
  character output. It writes individual characters to the screen in what is
  known as teletype (TTY) mode. This makes the screen act as the simplest
  and crudest form of printer--exactly what is needed for routine text
  output. As such, this service has no regard for such niceties as color,
  blinking characters, or control over the cursor location.

  With this service, the character is written at the current cursor location
  and the cursor is advanced one position, wrapping to new lines or
  scrolling the screen as needed. The character to be written is specified
  in register AL.

  In text modes, the character is displayed as in service 0AH; that is, with
  the color attributes already in use at the screen location where the
  character is written. In graphics modes, however, you must also specify
  the foreground color value to be used for the character. (See Figure
  9-14.)

  There are four characters that service 0EH reacts to according to their
  ASCII meaning: 07H (decimal 7)--beep, 08H (decimal 8)--backspace, 0AH
  (decimal 10)--line feed, and 0DH (decimal 13)--carriage return. All other
  characters are displayed normally.

  The primary advantage of this service over service 09H is that the cursor
  is automatically moved; the advantage of service 09H is that you can
  control the color attribute. Now, if you could only combine the two....

  Service Number           Parameters
  --------------------------------------------------------------------------
  AH = 0EH                 AL = ASCII character to write
                           BL = foreground color (in graphics modes only)
                           BH = display page (IBM PC BIOS dated 10/19/81 or
                           earlier)
  --------------------------------------------------------------------------

  Figure 9-14.  The registers used to write a character in teletype mode
  using service 0EH.

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