Return to previous page Return to menu Go to next page

Example 2 Image: NBG0 16.77 million color bitmap data : VRAM A: NBG0 bitmap data is placed : VRAM B: NBG0 bitmap data placed

Uint16 cycle [] = {/ * Cycle pattern table * / 0x4444, 0x4444, / * VRAM A (A0) * / : 0xffff, 0xffff, / * VRAM A1 unused * / 0x4444, 0x4444, / * VRAM B (B0) * / : 0xffff, 0xffff, / * VRAM B1 not used * / }

sample sample () { SCL_SetCycleTable (& cycle); }

Example 3 Image: RBG0 256-color bitmap data NBG0 16-color bitmap data (with 1/4 reduction) . NBG1 16-color bitmap data (with 1/2 reduction) NBG2 16-color character data / pattern name data : NBG3 16-color character data / pattern name data : VRAM A0: RBG0 bitmap data is placed : VRAM A1: Place rotation parameter coefficient table Place rotation parameter table : VRAM B0: NBG0 bitmap data is placed Bit map data for NBG1 : VRAM B1: NBG2 character data and pattern name data are placed : NBG3 character data and pattern name data are placed ☆ Uint16 cycle [] = {/ * Cycle pattern table * / 0xffff, 0xffff, / * VRAM A0 * / 0xffff, 0xffff, / * VRAM A1 * / 0x4444, 0xff55, / * VRAM B0 * / 0x23ff, 0x67ff, / * VRAM B1 * / }

sample sample () { SclVramConfig tp; SCL_InitVramConfigTb (& tp); tp.vramModeA = ON / * VRAM A is divided and used * / tp.vramA0 = SCL_RBG0_CHAR; / * Place RBG0 bitmap data * / tp.vramA1 = SCL_RBG0_K; / * Place rotation parameter coefficient table * / SCL_SetVramConfig (& tp); SCL_SetCycleTable (& cycle); }



Return to previous page Return to menu Go to next page