libmsx
C library for MSX
Loading...
Searching...
No Matches
Bitmap graphics mode

Initialization functions for GRAPHIC 4, 5, 6, and 7 mode. More...

+ Collaboration diagram for Bitmap graphics mode:

Functions

void screen5 (void)
 MSX2 SCREEN 5 (GRAPHIC 4 mode).
 
void screen6 (void)
 MSX2 SCREEN 6 (GRAPHIC 5 mode).
 
void screen7 (void)
 MSX2 SCREEN 7 (GRAPHIC 6 mode).
 
void screen8 (void)
 MSX2 SCREEN 8 (GRAPHIC 7 mode).
 
void screen10 (void)
 MSX2+ SCREEN 10 (GRAPHIC 7 YJK/RGB mode).
 
void screen12 (void)
 MSX2+ SCREEN 12 (GRAPHIC 7 YJK mode).
 

Detailed Description

Initialization functions for GRAPHIC 4, 5, 6, and 7 mode.

Function Documentation

◆ screen5()

void screen5 ( void  )

MSX2 SCREEN 5 (GRAPHIC 4 mode).

  • 256 x 212 pixel, 4-bpp graphics mode.
  • 16 colors/pixel of 512 colors (RGB333).
  • Sprite mode 2.

VRAM memory map

VRAM address size contents
0x00000 0x6A00 Pattern name table
0x07400 0x0200 Sprite color table
0x07600 0x0080 Sprite attribute table
0x07800 0x0300 Sprite pattern generator table
Note
In this mode, text is drawn as individual color text. (i.e., text is drawn as a two-tone color graphic).

◆ screen6()

void screen6 ( void  )

MSX2 SCREEN 6 (GRAPHIC 5 mode).

  • 512 x 212 pixel, 2-bpp graphics mode.
  • 4 colors/pixel of 512 colors (RGB333).
  • Sprite mode 2.

VRAM memory map

VRAM address size contents
0x00000 0x6A00 Pattern name table
0x07400 0x0200 Sprite color table
0x07600 0x0080 Sprite attribute table
0x07800 0x0300 Sprite pattern generator table
Note
In this mode, text is drawn as individual color text. (i.e., text is drawn as a two-tone color graphic).

◆ screen7()

void screen7 ( void  )

MSX2 SCREEN 7 (GRAPHIC 6 mode).

  • 512 x 212 pixels, 4-bpp graphics mode.
  • 16 colors/pixel of 512 colors (RGB333).
  • Sprite mode 2.

VRAM memory map

VRAM address size contents
0x00000 0xD400 Pattern name table
0x0F000 0x0300 Sprite pattern generator table
0x0F800 0x0200 Sprite color table
0x0FA00 0x0080 Sprite attribute table
Note
In this mode, text is drawn as individual color text. (i.e., text is drawn as a two-tone color graphic).

◆ screen8()

void screen8 ( void  )

MSX2 SCREEN 8 (GRAPHIC 7 mode).

  • 256 x 212 pixel, 8-bpp graphics mode.
  • 256 colors/pixel of 256 colors (RGB332).
  • Sprite mode 2.
  • Pre-defined 16 colors for sprites.
  • No color palette.

VRAM memory map

VRAM address size contents
0x00000 0xD400 Pattern name table
0x0F000 0x0300 Sprite pattern generator table
0x0F800 0x0200 Sprite color table
0x0FA00 0x0080 Sprite attribute table
Note
In this mode, text is drawn as individual color text. (i.e., text is drawn as a two-tone color graphic).

◆ screen10()

void screen10 ( void  )

MSX2+ SCREEN 10 (GRAPHIC 7 YJK/RGB mode).

  • 256 x 212 pixel, 8-bpp graphics mode.
  • 12,499 colors (YJK), or 16 colors/pixel of 512 colors (RGB333).
  • Sprite mode 2.

VRAM memory map

VRAM address size contents
0x00000 0xD400 Pattern name table
0x0F000 0x0300 Sprite pattern generator table
0x0F800 0x0200 Sprite color table
0x0FA00 0x0080 Sprite attribute table
Note
In this mode, text is drawn as individual color text. (i.e., text is drawn as a two-tone color graphic).
In this mode, text is drawn in the colors of the color palette as in SCREEN 5 and 7.

◆ screen12()

void screen12 ( void  )

MSX2+ SCREEN 12 (GRAPHIC 7 YJK mode).

  • 256 x 212 pixel, 8-bpp graphics mode.
  • 19,268 colors (YJK).
  • Sprite mode 2.

VRAM memory map

VRAM address size contents
0x00000 0xD400 Pattern name table
0x0F000 0x0300 Sprite pattern generator table
0x0F800 0x0200 Sprite color table
0x0FA00 0x0080 Sprite attribute table
Note
In this mode, text is drawn as individual color text. (i.e., text is drawn as a two-tone color graphic).
The pixel format for this mode is YJK/RGB, but it handles text foreground and background colors in the same way as SCREEN 8. This may result in unexpected colors in the text output feature.