Return to previous page Return to menu Go to next page

Chapter 5 Table

5.1 Character pattern table

Character pattern is the base data of sprites drawn by texture drawing command.
Please define the character pattern in VRAM continuously as a table. The stored data is referenced by the character address in the command table, and the data size is determined by the character pattern size and sprite color mode.

Character pattern table address
Define the character pattern with a 20H (32) Byte boundary. However, a character pattern starting from address 00000H in VRAM cannot be defined. Character patterns are stored with a 20-Hbyte boundary, so memory that is less than 20 HByte is free space.
* VRAM is up to 7FFFFH. Do not define a character pattern beyond the 80000H address.

Table size
Depending on the color mode, 1 pixel of the character pattern is 4, 8, or 16 bit data.
The character size can be specified in the range of 8 to 504 pixels in the horizontal unit of 8 pixels and 1 to 255 pixels in the vertical unit of 1 pixel.
For example, to represent a character pattern of horizontal 8 pixels x vertical 3 pixels, 0CH (12) Byte is required for 4bit / pixel, 18H (24) Byte for 8bit / pixel, and 30H (48) Byte for 16bit / pixel.
The character pattern table requires a minimum size of 8 pixels wide by 1 pixel vertical and 4 HByte when 4 bits / pixel, and a maximum size of 3 EC10H (257040) bytes when horizontal 504 pixels × 255 pixels vertical and 16 bits / pixel.

Table 5.1 Character pattern table size
 item 
 minimum 
 maximum 
 Character size 
 8 pixels wide x 1 pixel 
 504 pixels wide × Vertical 255pixel 
 Color mode 
 4bit / pixel 
 16bit / pixel 
 Character pattern 
 4HByte  *  
 3EC10H (257040) Byte 
[Note] Please note that a character pattern of * 4HByte requires 20HByte on VRAM.


Return to previous page Return to menu Go to next page