Return to previous page Return to menu Go to next page

5.2 Color Lookup Table

The color lookup table is used to specify the pixel color of the character pattern in the lookup table mode. The color lookup table defines 16 color codes in VRAM as 16-bit data.
In the lookup table mode, the character pattern is defined in the character pattern table at 4bit / pixel, and one of the 16 colors in the color lookup table is selected with the defined 4-bit data. The 16-bit color code of the selected color is written to the frame buffer as the pixel color code.
The size of the color lookup table is 20H (32) Byte. Please write the table from the boundary address of 20HByte unit of VRAM. However, it cannot be defined as 00000H.
* VRAM is up to 7FFFFH. Do not define a color lookup table beyond the 80000H address.
The data written to the color lookup table is valid for both color bank codes and RGB codes. RGB code is MSB = 0. The color bank code is MSB = 0 when RGB codes are mixed, and MSB is arbitrary (0 or 1) when RGB codes are not mixed.
∙ Set MSB according to VDP2 data processing.

Figure 5.2 Color Lookup Table

Lookup table mode
Use the sprite drawing command to specify the color mode as the lookup table mode. With this specification, the character pattern stored in VRAM at 4bit / pixel is converted to a color code by referring to the specified color lookup table and written to the frame buffer.
Specified character pattern storage address and size, and color lookup table storage address in sprite drawing command.


Return to previous page Return to menu Go to next page