|
libmsx
C library for MSX
|
Dispalay area adjust / Hardware scroll. More...
Collaboration diagram for Display registers:Enumerations | |
| enum | vdp_yjk_mode { VDP_RGB = 0x00 , VDP_YJK = 0x08 , VDP_YJK_RGB = 0x18 } |
MSX2+ Enumeration of V9958 VDP's color space. More... | |
Functions | |
| void | vdp_set_adjust (int8_t x, int8_t y) |
MSX2 Set VDP display adjust register. | |
| void | vdp_set_vscroll (uint8_t y) |
MSX2 Set VDP vertical display offset register. | |
| void | vdp_set_hscroll (uint16_t x) |
MSX2+ Set VDP horizontal display offset register. | |
| void | vdp_set_hscroll_mask (bool enable) |
MSX2+ Enables/Disables the screen mask for the leftmost 8 pixels. | |
| void | vdp_set_hscroll_dual_page (bool enable) |
MSX2+ Enable/disable horizontal scrolling for two pages. | |
| void | vdp_set_yjk_mode (enum vdp_yjk_mode yjk) |
MSX2+ Set V9958 VDP's color space to RGB, YJK, or YJK/RGB. | |
Dispalay area adjust / Hardware scroll.
| enum vdp_yjk_mode |
MSX2+ Enumeration of V9958 VDP's color space.
VDP_RGB can be used to reset to default color space for each screen mode.
VDP_YJK and VDP_YJK_RGB are supposed to use with GRAPHIC 7 screen mode, and not with any other screen mode.
| void vdp_set_adjust | ( | int8_t | x, |
| int8_t | y ) |
MSX2 Set VDP display adjust register.
| x | x offset (-7..+8) |
| y | y offset (-7..+8) |
| void vdp_set_vscroll | ( | uint8_t | y | ) |
MSX2 Set VDP vertical display offset register.
| y | vertical offset. (0..255) |
| void vdp_set_hscroll | ( | uint16_t | x | ) |
MSX2+ Set VDP horizontal display offset register.
| x | horizontal offset (0..511) |
| void vdp_set_hscroll_mask | ( | bool | enable | ) |
MSX2+ Enables/Disables the screen mask for the leftmost 8 pixels.
| enable | Hide the leftmost 8 pixels if true, show otherwise. |
| void vdp_set_hscroll_dual_page | ( | bool | enable | ) |
MSX2+ Enable/disable horizontal scrolling for two pages.
| enable | scrolling two pages if true, one page otherwise. |
| void vdp_set_yjk_mode | ( | enum vdp_yjk_mode | yjk | ) |
MSX2+ Set V9958 VDP's color space to RGB, YJK, or YJK/RGB.
Set / Reset YJK/YAE bit of V9958 VDP register R#25.
Affects GRAPHIC 7 screen mode color space and pixel format.
VDP_RGB can be used to reset to default color space for each screen mode.
VDP_YJK and VDP_YJK_RGB are supposed to use with GRAPHIC 7 screen mode, and not with any other screen mode.
| yjk | color space |