vga.h File Reference


Detailed Description

Definitions for VGA cards.

Todo:
Split this out for the different VGA cards.
Id
vga.h,v 1.5 2008/03/14 15:31:29 iamcamiel Exp

X-1.3 Camiel Vanderhoeven 02-JAN-2008 Comments.

X-1.2 Camiel Vanderhoeven 7-DEC-2007 Code cleanup.

X-1.1 Camiel Vanderhoeven 6-DEC-2007 Initial version for ES40 emulator.

Definition in file vga.h.

Go to the source code of this file.

Defines

#define MAKE_COLOUR
#define BX_MAX_XRES   800
#define BX_MAX_YRES   600
#define X_TILESIZE   16
#define Y_TILESIZE   24
#define BX_NUM_X_TILES   (BX_MAX_XRES / X_TILESIZE)
#define BX_NUM_Y_TILES   (BX_MAX_YRES / Y_TILESIZE)
#define BX_MAX_TEXT_LINES   100


Define Documentation

#define BX_MAX_TEXT_LINES   100

Definition at line 152 of file vga.h.

Referenced by CS3Trio64::update(), and CCirrus::update().

#define BX_MAX_XRES   800

Definition at line 142 of file vga.h.

Referenced by bx_gui_c::init(), and UIThread().

#define BX_MAX_YRES   600

Definition at line 143 of file vga.h.

Referenced by bx_gui_c::init(), and UIThread().

#define BX_NUM_X_TILES   (BX_MAX_XRES / X_TILESIZE)

Definition at line 147 of file vga.h.

#define BX_NUM_Y_TILES   (BX_MAX_YRES / Y_TILESIZE)

Definition at line 148 of file vga.h.

#define MAKE_COLOUR

Value:

(                                                                            \
      red, red_shiftfrom, red_shiftto, red_mask, green, green_shiftfrom,         \
        green_shiftto, green_mask, blue, blue_shiftfrom, blue_shiftto, blue_mask \
    )                                                                            \
      (                                                                          \
        (                                                                        \
          (                                                                      \
            ((red_shiftto) > (red_shiftfrom)) ? (red) <<                         \
              ((red_shiftto) - (red_shiftfrom)) : (red) >>                       \
                ((red_shiftfrom) - (red_shiftto))                                \
          ) & (red_mask)                                                         \
        ) |                                                                      \
          (                                                                      \
            (                                                                    \
              ((green_shiftto) > (green_shiftfrom)) ? (green) <<                 \
                ((green_shiftto) - (green_shiftfrom)) : (green) >>               \
                  ((green_shiftfrom) - (green_shiftto))                          \
            ) & (green_mask)                                                     \
          ) |                                                                    \
            (                                                                    \
              (                                                                  \
                ((blue_shiftto) > (blue_shiftfrom)) ? (blue) <<                  \
                  ((blue_shiftto) - (blue_shiftfrom)) : (blue) >>                \
                    ((blue_shiftfrom) - (blue_shiftto))                          \
              ) & (blue_mask)                                                    \
            )                                                                    \
      )

Definition at line 54 of file vga.h.

#define X_TILESIZE   16

#define Y_TILESIZE   24


SourceForge.net Logo
Project space on SourceForge.net