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.
Monochrome Display Attributes
 Color                                     Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Monochrome attribute bytes correspond to specific screen positions in the
  same way as color attribute bytes. Bits 4-7 determine a character's
  background appearance and blink state. Bits 0-3 determine foreground
  appearance and brightness.
 
      7        6        5        4           3        2        1        0
 ┌────────┬────────┬────────┬────────┐  ┌────────┬────────┬────────┬────────┐
 │ Blink  │        │        │        │  │ Bright │        │        │        │
 └────────┴────────┴────────┴────────┘  └────────┴────────┴────────┴────────┘
 
              Background                              Foreground
 
 ────────────────────────────────────┬──────────────────────────────────────
  ── Bits ──    Hex                  │ ── Bits ──    Hex
  7  6  5  4   Value  Color          │ 3  2  1  0   Value  Color
 ────────────────────────────────────┼──────────────────────────────────────
  0  0  0  0   0      Black          │ 0  0  0  0   0      Black
  0  1  1  1   7      Reverse        │ 0  0  0  1   1      Underlined
  1  0  0  0   8      Blink          │ 0  1  1  1   7      Normal
  1  1  1  1   F      Reverse blink  │ 1  0  0  1   9      Bright Underlined
                                     │ 1  1  1  1   F      Bright
 ────────────────────────────────────┴──────────────────────────────────────
 
  See also: Video Buffers
                                    -♦-