Modules/v9990

From MSX Game Library

< Modules

v9990

Code: v9990.h

Category: Device

Dependencies: None

Samples:

The v9990 module supports the functionalities of the Yamaha V9990 video card (the card that was to equip the MSX3 in the early 1990s).

Usage

To use this module, include "v9990.h" in your source code, and add "v9990" to the modules list (LibModules) in your project's configuration file (project_config.js).


Samples

See module use cases in the sample programs:

Settings

Library configuration (msxgl_config.h):

// V9990 screen modes support
#define V9_USE_MODE_P1				TRUE	// Tile mode 0 256x212
#define V9_USE_MODE_P2				TRUE	// Tile mode 1 512x212
#define V9_USE_MODE_B0				TRUE	// Bitmap mode 1 192x240 (Undocumented v9990 mode)
#define V9_USE_MODE_B1				TRUE	// Bitmap mode 1 256x212
#define V9_USE_MODE_B2				TRUE	// Bitmap mode 2 384x240
#define V9_USE_MODE_B3				TRUE	// Bitmap mode 3 512x212
#define V9_USE_MODE_B4				TRUE	// Bitmap mode 4 768x240
#define V9_USE_MODE_B5				TRUE	// Bitmap mode 5 640x400 (VGA)
#define V9_USE_MODE_B6				TRUE	// Bitmap mode 6 640x480 (VGA)
#define V9_USE_MODE_B7				TRUE	// Bitmap mode 7 1024x212 (Undocumented v9990 mode)

#define V9_INT_PROTECT				TRUE	// VRAM access protection mode against interruption
// Palette input data format
// - V9_PALETTE_YSGBR_16 .......... 16 bits RGB + Ys [Ys|G|G|G|G|G|R|R] [R|R|R|B|B|B|B|B]
// - V9_PALETTE_GBR_16 ............ 16 bits RGB      [0|G|G|G|G|G|R|R] [R|R|R|B|B|B|B|B]
// - V9_PALETTE_RGB_24 ............ 24 bits RGB      [0|0|0|R|R|R|R|R] [0|0|0|G|G|G|G|G] [0|0|0|B|B|B|B|B]
#define V9_PALETTE_MODE				V9_PALETTE_RGB_24

Dependencies

Dependency on other modules: None

Documentation