Figure 4.10 Bit configuration when pattern name data is 1 word
(1) Character size: 1 cell horizontally x 1 cell vertically Number of character colors: 16 colors Character number auxiliary mode: Mode 0
●Pattern name data in the pattern name table
bit15 | bit14 | bit13 | bit12 | bit11 | bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | Reversing function | character number |
3 | 2 | 1 | 0 | top and bottom | left and right | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
●Auxiliary data in pattern name control register
bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
special features | pallet number | character number |
PR | CC | 6 | 5 | 4 | 14 | 13 | 12 | 11 | 10 |
PR: Special priority bit
CC: Special color operation bit
(2) Character size: 1 cell horizontally x 1 cell vertically Number of character colors: 16 colors Character number auxiliary mode: Mode 1
●Pattern name data in the pattern name table
bit15 | bit14 | bit13 | bit12 | bit11 | bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | character number |
3 | 2 | 1 | 0 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
●Auxiliary data in pattern name control register
bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
special features | pallet number | character number |
PR | CC | 6 | 5 | 4 | 14 | 13 | 12 | - | - |
PR: Special priority bit
CC: Special color operation bit
[Note] "-" is ignored
(3) Character size: 1 cell horizontally x 1 cell vertically Number of character colors: Other than 16 colors Character number auxiliary mode: Mode 0
●Pattern name data in the pattern name table
bit15 | bit14 | bit13 | bit12 | bit11 | bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | Reversing function | character number |
- | 6 | 5 | 4 | top and bottom | left and right | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
[Note] "-" is ignored
●Auxiliary data in pattern name control register
bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
special features | pallet number | character number |
PR | CC | - | - | - | 14 | 13 | 12 | 11 | 10 |
PR: Special priority bit
CC: Special color operation bit
[Note] "-" is ignored
(4) Character size: 1 cell horizontally x 1 cell vertically Number of character colors: Other than 16 colors Character number auxiliary mode: Mode 1
●Pattern name data in the pattern name table
bit15 | bit14 | bit13 | bit12 | bit11 | bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | character number |
- | 6 | 5 | 4 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
●Auxiliary data in pattern name control register
bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
special features | pallet number | character number |
PR | CC | - | - | - | 14 | 13 | 12 | - | - |
PR: Special priority bit
CC: Special color operation bit
[Note] "-" is ignored
(5) Character size: 2 cells horizontally x 2 cells vertically Number of character colors: 16 colors Character number auxiliary mode: Mode 0
●Pattern name data in the pattern name table
bit15 | bit14 | bit13 | bit12 | bit11 | bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | Reversing function | character number |
3 | 2 | 1 | 0 | top and bottom | left and right | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 |
●Auxiliary data in pattern name control register
bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
special features | pallet number | character number |
PR | CC | 6 | 5 | 4 | 14 | 13 | 12 | 1 | 0 |
PR: Special priority bit
CC: Special color operation bit
(6) Character size: 2 cells horizontally x 2 cells vertically Number of character colors: Other than 16 colors Character number auxiliary mode: Mode 1
●Pattern name data in the pattern name table
bit15 | bit14 | bit13 | bit12 | bit11 | bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | character number |
- | 6 | 5 | 4 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 |
●Auxiliary data in pattern name control register
bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
special features | pallet number | character number |
PR | CC | 6 | 5 | 4 | 14 | - | - | 1 | 0 |
PR: Special priority bit
CC: Special color operation bit
[Note] "-" is ignored
- ◆Character number
- The character number is 15-bit data that specifies the start address of the character pattern to be displayed at that position. The boundary of the character pattern based on this character number is always 20H. Note that if the VRAM capacity is 4M bits, the most significant bit (bit 14) of the character number is not used.
- ◆Palette number
- The palette number is 7-bit data that specifies the starting address of the color palette used for the character pattern displayed at that position. This data is only used when the color format is palette format, not when the color format is RGB format. The palette number is attached to the dot color code of the character pattern, making it 11 bits of dot color data, so the bits used will change depending on the number of character colors. Figure 4.11 shows the structure of 11-bit dot color data.
- Figure 4.11 Dot color data based on character color number
- ●Number of character colors: 16 colors
bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | dot color code |
6 | 5 | 4 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 0 |
- ●Number of character colors: 256 colors
bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
pallet number | dot color code |
6 | 5 | 4 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
- ●Number of character colors: 2048 colors
bit10 | bit9 | bit8 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
dot color code |
10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
- ◆Special function bit
- The special function bit is 2-bit data that specifies whether to use a special function for the character pattern displayed at that position. The special function bits include a special priority bit that controls the priority number and a special color calculation bit that controls color calculation. For details on special priority bits, see " 11.2 Special Priority Function ." For details on special color calculation bits, please refer to " 12.2 Special color calculation function ".
- ◆Reverse function bit
- The reverse function bit is 2-bit data that specifies whether to use the reverse function for the character pattern displayed at that position. The flip function bits include the vertical flip 064 horizontal flip bit, which flips the character pattern vertically. Table 4.7 shows the inversion function bits, and Figure 4.12 shows an example of character pattern inversion display.
- Table 4.7 Invert function bit
Vertical flip bit | Left/right flip bit | process |
0 | 0 | Does not flip either vertically or horizontally |
0 | 1 | Flip left and right only |
1 | 0 | Flip only the top and bottom |
1 | 1 | Flip both vertically and horizontally |
Figure 4.12 Reverse display of character pattern
- ◆Limitations on the horizontal flip function bit
- The cell format normal scroll screen (NBG0,1) horizontal inversion function bit is valid only when the number of character colors is 16 or 256 colors. Otherwise, do not set it to "1".
▲ Back | Forward ▼
★ HARDWARE Manual VDP2 User's Manual ★ Chapter 4 Scroll screen
Copyright SEGA ENTERPRISES, LTD., 1997