Nintendo 1504166 Programming Manual - Page 43
BG Screen Data Format, Horizontal Flip Flag
View all Nintendo 1504166 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 43 highlights
AGB Programming Manual Rendering Functions 6.1.5 BG Screen Data Format A BG screen is considered to be the 8 x 8 dot unit that represents the size of the basic character, and the BG screen data specifies the characters that are arranged. BG screen data should be stored, beginning from the starting address of the BG screen base block specified in the BG control register. The number of screen data items specified per BG depends on the screen size setting in the BG control register. BG screen data for text and rotation/scaling screens are specified in the following formats. 1) Text BG Screen A text BG screen consists of 2 bytes of screen data per basic character; 1,024 character types can be specified. 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Horizontal flip flag Vertical flip flag Color Palette With 16 colors x 16 palettes: 0-15 With 256 colors x 1 palette: disabled Character name [d15-12] Color Palette If the color mode specification in the BG control register is 16 colors x 16 palettes, these bits specify palette 0-15 as the palette to be applied to the character. This is disabled when the color mode specification is 256 x 1 palette. [d11] Vertical Flip Flag Enables the BG character to be flipped vertically. A setting of 1 produces the vertical-flip display. [d10] Horizontal Flip Flag Enables the BG character to be flipped horizontally. A setting of 1 produces the horizontal-flip display. ©1999 - 2001 Nintendo of America Inc. 43 D.C.N. AGB-06-0001-002B4