Return to previous page Return to menu Go to next page

■ End code disabled

End code disable bit: end-code disable (ECD), bit 7
Specify whether to disable the end code of the character pattern. When it is 0, the end code is valid. When it is 1, the end code is invalid.
The end code invalid bit is valid only for drawing sprites with character patterns. Set this bit to 1 for polygons, polylines, and lines.
If the end code is valid (ECD = 0), when drawing the end code for the second time in the horizontal direction while drawing the character pattern, drawing of that line ends there, and drawing moves to the beginning of the next line. The end code is not drawn and the pixel is transparent.
If the end code is disabled (ECD = 1), the end code is processed in the same way as other color codes.
The horizontal drawing ends when the end code is read twice, and the end processing is performed only in the horizontal direction of the character pattern, and the vertical direction has no effect.
* It is processed regardless of the transparent pixel invalid bit (SPD).
Note that if the end code is enabled (ECD = 0), the end code cannot be used for color display, so the number of colors that can be used is reduced by one.
∙ Also, in the case of a sprite that shrinks in the horizontal direction with HSS = 1, set the end code to invalid (ECD = 1).

 HSS 
 ECD 
 End Code processing 
 0 
 0 
 End code valid, second time End code will end horizontal drawing, 
End code will be transparent
 0 
 1 
 End code invalid, end code is Not processed, 
colors as code
 1 and 
Zoom
 0 
 End code Enabled, horizontal drawing ends with second end code, 
end code becomes transparent
 1 and 
Reduce
 0 
 End code Disabled, end code not processed, 
colors as code
 1 
 1 
 End code invalid, end code is Not processed, 
color as code

The relationship between color mode and end code is as follows. The number of bits of the end code differs in color mode.

 Color Mode 
 End Code 
 0 
 16 colors (color bank mode) 
 FH (4 bits) 
 1 
 16 colors (lookup table mode) 
 FH (4 bits) 
 2 
 64 colors (color bank mode) 
 FFH (8 bits) 
 3 
 128 colors (color bank mode) 
 FFH (8 bits) 
 4 
 256 colors (color bank mode) 
 FFH (8 bits) 
 5 
 32768 colors (RGB mode) 
 7FFFH (16 bits) 


Return to previous page Return to menu Go to next page