Text and background color in TEXT 1 and 2 mode, and Backdrop color.
More...
Text and background color in TEXT 1 and 2 mode, and Backdrop color.
◆ vdp_set_color()
| void vdp_set_color |
( |
uint8_t | c | ) |
|
MSX Set VDP color register.
- Parameters
-
| c | value to be set to VDP color register (R#7) |
- Note
- In TEXT 1 and TEXT 2 mode:
- bit #7..#4 : foreground color of text. (
0..15)
- bit #3..#0 : background color of text. (
0..15)
-
In MULTI COLOR mode:
- bit #7..#4 : (unused)
- bit #3..#0 : color of the backdrop plane. (
0..15)
- Color of patterns are given by the pattern generator table.
-
In GRAPHIC 1..3 mode:
- bit #7..#4 : (unused)
- bit #3..#0 : color of the backdrop plane. (
0..15)
- Color of patterns are given by the color table.
-
In GRAPHIC 4..6 mode:
- bit #7..#4 : (unused)
- bit #3..#0 : color of the backdrop plane. (
0..15)
- Color of pixels are given by the pattern name table.
-
In GRAPHIC 7 mode (default):
- bit #7..#0 : color of the backdrop plane. (
0..255)
- Color of pixels are given by the pattern name table.
-
In GRAPHIC 7 mode (YJK):
- bit #7..#4 : (unused)
- bit #3..#0 : color of the backdrop plane. (
0..15)
- Color of pixels are given by the pattern name table.
-
In GRAPHIC 7 mode (YJK/RGB mixed):
- bit #7..#4 : (unused)
- bit #3..#0 : color of the backdrop plane. (
0..15)
- Color of pixels are given by the pattern name table.