In terms of the scroll screen composition unit explained in “Section 8-2: Scroll composition unit”, this is
That's what it means. The data in 1) and 2) is stored in a memory area called VRAM and accessed to be used for actual drawing.
3) is the color information in palette format used for scrolling.
Palette format is a color setting method that uses 16 colors, 256 colors, or 2048 colors (1024 colors depending on settings) as one palette for each character pattern.
The color palette is
RGB data of individual colors: Color identification number within the palette stored in color RAM: Identification number for each palette used in character pattern: Used in pattern name data
It consists of three data.
Color palette data is stored in a memory area called color RAM, and is used for actual drawing when accessed.
In the default state, SGL already stores scroll data (including color data) for character and numerical display called ASCII cells in memory.
Therefore, if you overwrite the ASCII scroll data stored in the default state with other scroll data, the character/numeric display functions supported by SGL will not be able to be used correctly.
The ASCII scroll consists of 128 cells and 256 colors, and uses the normal scroll screen "NBG0".
ASCII scroll data is stored in the RAM area as shown below.
Figure 8-7 ASCII scroll data storage areaCharacter data: 2000H from address 0x25e60000 Map data: 1000H from address 0x25e76000 Palette data: 20H from address 0x25f00000
color mode | color bit | Data size | Number of colors |
---|---|---|---|
mode 0 | RGB each 5 bits, total 15 bits | 1 word | 1024 out of 32768 colors |
mode 1 | RGB each 5 bits, total 15 bits | 1 word | 1024 out of 32768 colors |
mode 2 | RGB 8 bits each, total 24 bits | 2 words | 1024 out of 16.77 million colors |
Color RAM mode is represented in the actual color RAM as the following image.
Figure 8-8 Color RAM address mapColor RAM mode 0: Used when using the extended color calculation function. Color RAM mode 1: Use when you want to use 2048 colors out of 32768 colors. Color RAM mode 2: Use when you want to use 2048 colors out of 16.77 million colors.
Use the library function “slColRAMMode” to set the color RAM mode.
Color RAM mode | |||
---|---|---|---|
mode 0 | mode 1 | mode 2 | |
Assignment value | CRM16_1024 | CRM16_2048 | CRM_1024 |