|
libmsx
C library for MSX
|
Initialization functions for GRAPHIC 1, 2, and 3 mode. More...
Collaboration diagram for Tiled graphics mode:Functions | |
| void | screen1 (void) |
MSX SCREEN 1: WIDTH 32 (GRAPHIC 1 mode). | |
| void | screen2 (void) |
MSX SCREEN 2: WIDTH 32 (GRAPHIC 2 mode). | |
| void | screen2_PCG (void) |
MSX SCREEN 2: WIDTH 32 (GRAPHIC 2 mode; PCG mode like as SCREEN 1). | |
| void | screen4 (void) |
MSX2 SCREEN 4: WIDTH 32 (GRAPHIC 3 mode). | |
| void | screen4_PCG (void) |
MSX2 SCREEN 4: WIDTH 32 (GRAPHIC 3 mode; PCG mode like as SCREEN 1). | |
Initialization functions for GRAPHIC 1, 2, and 3 mode.
| void screen1 | ( | void | ) |
MSX SCREEN 1: WIDTH 32 (GRAPHIC 1 mode).
VRAM memory map
| VRAM address | size | contents |
|---|---|---|
| 0x00000 | 0x0800 | Pattern generator table |
| 0x01800 | 0x0300 | Pattern name table |
| 0x01B00 | 0x0080 | Sprite attribute table |
| 0x02000 | 0x0020 | Color table |
| 0x03800 | 0x0300 | Sprite pattern generator table |
| void screen2 | ( | void | ) |
MSX SCREEN 2: WIDTH 32 (GRAPHIC 2 mode).
VRAM memory map
| VRAM address | size | contents |
|---|---|---|
| 0x00000 | 0x1800 | Pattern generator table |
| 0x01800 | 0x0300 | Pattern name table |
| 0x01B00 | 0x0080 | Sprite attribute table |
| 0x02000 | 0x1800 | Color table |
| 0x03800 | 0x0300 | Sprite pattern generator table |
The pattern name table is initialized as follows and will not be changed thereafter:
The pattern generator table and color table are then used as the canvas for the graphics screen. Thus, the characters in the text are also drawn as images one by one. Thus, the text will be more colorful, but a little slower.
| void screen2_PCG | ( | void | ) |
MSX SCREEN 2: WIDTH 32 (GRAPHIC 2 mode; PCG mode like as SCREEN 1).
VRAM memory map
| VRAM address | size | contents |
|---|---|---|
| 0x00000 | 0x1800 | Pattern generator table |
| 0x01800 | 0x0300 | Pattern name table |
| 0x01B00 | 0x0080 | Sprite attribute table |
| 0x02000 | 0x1800 | Color table |
| 0x03800 | 0x0300 | Sprite pattern generator table |
| void screen4 | ( | void | ) |
MSX2 SCREEN 4: WIDTH 32 (GRAPHIC 3 mode).
VRAM memory map
| VRAM address | size | contents |
|---|---|---|
| 0x00000 | 0x1800 | Pattern generator table |
| 0x01800 | 0x0300 | Pattern name table |
| 0x01C00 | 0x0200 | Sprite color table |
| 0x01E00 | 0x0080 | Sprite attribute table |
| 0x02000 | 0x1800 | Color table |
| 0x03800 | 0x0300 | Sprite pattern generator table |
The pattern name table is initialized as follows and will not be changed thereafter:
The pattern generator table and color table are then used as the canvas for the graphics screen. Thus, the characters in the text are also drawn as images one by one. Thus, the text will be more colorful, but a little slower.
| void screen4_PCG | ( | void | ) |
MSX2 SCREEN 4: WIDTH 32 (GRAPHIC 3 mode; PCG mode like as SCREEN 1).
VRAM memory map
| VRAM address | size | contents |
|---|---|---|
| 0x00000 | 0x1800 | Pattern generator table |
| 0x01800 | 0x0300 | Pattern name table |
| 0x01C00 | 0x0200 | Sprite color table |
| 0x01E00 | 0x0080 | Sprite attribute table |
| 0x02000 | 0x1800 | Color table |
| 0x03800 | 0x0300 | Sprite pattern generator table |