★ SGL User's Manual ★ PROGRAMMER'S STRUCTThis is referred to as the scroll screen configuration unit explained in "Section 8-2: Scroll configuration unit".
It means that. The data of 1) and 2) are stored in a memory area called VRAM in the memory and accessed to be used for actual drawing.
3) is the color information in the palette format used for scrolling.
The palette format is a color setting method that uses any of 16 colors, 256 colors, and 2048 colors (1024 colors depending on the setting) as one palette for each character pattern.
The color palette is
RGB data of individual colors: Color identification number in the palette stored in the color RAM: Identification number for each palette used in the character pattern: Used in the pattern name data
It is composed of three data.
Color palette data is stored in a memory area called color RAM in the memory, and by accessing it, it is used for actual drawing.


In the default state, SGL already stores scroll data (including color data) for displaying character values called ASCII cells in memory.
Therefore, if you overwrite the ASCII scroll data stored in the default state with other scroll data, the character / numerical display functions supported by SGL cannot be used correctly.
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 follows.
Figure 8-7 ASCII scroll data storage area
Character 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 5 bits each, 15 bits in total | 1 word | 1024 out of 32768 colors |
| Mode 1 | RGB 5 bits each, 15 bits in total | 1 word | 1024 out of 32768 colors |
| Mode 2 | RGB 8 bits each, 24 bits in total | 2 words | 1024 out of 16.77 million colors |
The color RAM mode is represented by the following image in the actual color RAM.
Figure 8-8 Color RAM address map
Color RAM mode 0: Used when using the extended color calculation function. Color RAM mode 1: Used when you want to use 2048 colors out of 32768 colors. Color RAM mode 2: Used 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 | |
| Price | CRM16_1024 | CRM16_2048 | CRM_1024 |
★ SGL User's Manual ★ PROGRAMMER'S STRUCT