VCE I/ | |
Ports. | |
colorport | VCE port. |
color_ctrl | VCE Control register. |
color_reg | VCE control table index register. |
color_data | VCE Color table data register. |
Control Register Flags. | |
VCE control register bitmask. | |
VCE_COLOR_MODE_MASK | Bit 7 selects the video mode. |
VCE_BLUR_MASK | Bit 2 is used to enable or disable sprites and background characters edge blur. |
VCE_DOT_CLOCK_MASK | Bits 0 and 1 selects the dot clock. |
VCE color modes | |
VCE_COLOR_MODE_BW | Black and white video. |
VCE_COLOR_MODE_RGB | Color video. |
VCE blur. | |
VCE_BLUR_ON | Blur edges of the sprites and background characters. |
VCE_BLUR_OFF | Disable edges blur. |
VCE dot clock. | |
VCE_DOT_CLOCK_10MHZ | 10MHz dot clock. |
VCE_DOT_CLOCK_7MHZ | 7MHz dot clock. |
VCE_DOT_CLOCK_5MHZ | 5MHz dot clock. |
VCE Helper Macros. | |
RGB | Convert 3bit R, G, B to 9bit palette entry. |
Predefined colors | |
VCE_BLACK | VCE value for black. |
VCE_WHITE | VCE value for white. |
VCE_RED | VCE value for red. |
VCE_GREEN | VCE value for green. |
VCE_BLUE | VCE value for blue. |
VCE_YELLOW | VCE value for yellow. |
VCE_MAGENTA | VCE value for magenta. |
VCE_CYAN | VCE value for yellow. |
VCE_GREY | VCE value for grey. |
VCE control register bitmask. | |
VCE_COLOR_MODE_MASK | Bit 7 selects the video mode. |
VCE_BLUR_MASK | Bit 2 is used to enable or disable sprites and background characters edge blur. |
VCE_DOT_CLOCK_MASK | Bits 0 and 1 selects the dot clock. |
VCE color modes | |
VCE_COLOR_MODE_BW | Black and white video. |
VCE_COLOR_MODE_RGB | Color video. |
VCE blur. | |
VCE_BLUR_ON | Blur edges of the sprites and background characters. |
VCE_BLUR_OFF | Disable edges blur. |
VCE dot clock. | |
VCE_DOT_CLOCK_10MHZ | 10MHz dot clock. |
VCE_DOT_CLOCK_7MHZ | 7MHz dot clock. |
VCE_DOT_CLOCK_5MHZ | 5MHz dot clock. |
RGB | Convert 3bit R, G, B to 9bit palette entry. |
Predefined colors | |
VCE_BLACK | VCE value for black. |
VCE_WHITE | VCE value for white. |
VCE_RED | VCE value for red. |
VCE_GREEN | VCE value for green. |
VCE_BLUE | VCE value for blue. |
VCE_YELLOW | VCE value for yellow. |
VCE_MAGENTA | VCE value for magenta. |
VCE_CYAN | VCE value for yellow. |
VCE_GREY | VCE value for grey. |
VCE port.
colorport = $0400
VCE Control register.
color_ctrl = colorport
VCE control table index register.
color_reg = colorport+2
VCE Color table data register.
color_data = colorport+4
Bit 7 selects the video mode.
VCE_COLOR_MODE_MASK = %10000000
Bit 2 is used to enable or disable sprites and background characters edge blur.
VCE_BLUR_MASK = %00000100
Bits 0 and 1 selects the dot clock.
VCE_DOT_CLOCK_MASK = %00000011
Black and white video.
VCE_COLOR_MODE_BW = %10000000
Color video.
VCE_COLOR_MODE_RGB = %00000000
Blur edges of the sprites and background characters.
VCE_BLUR_ON = %00000100
Disable edges blur.
VCE_BLUR_OFF = %00000000
10MHz dot clock.
VCE_DOT_CLOCK_10MHZ = %00000010
7MHz dot clock.
VCE_DOT_CLOCK_7MHZ = %00000001
5MHz dot clock.
VCE_DOT_CLOCK_5MHZ = %00000000
VCE value for black.
VCE_BLACK = $000
VCE value for white.
VCE_WHITE = $1ff
VCE value for red.
VCE_RED = $038
VCE value for green.
VCE_GREEN = $1C0
VCE value for blue.
VCE_BLUE = $007
VCE value for yellow.
VCE_YELLOW = $1F8
VCE value for magenta.
VCE_MAGENTA = $03F
VCE value for yellow.
VCE_CYAN = $1C7
VCE value for grey.
VCE_GREY = $124