Return to previous page Return to menu Go to next page

 scfg.dispenbl = ON; / * Display NBG0 on the screen * /
     scfg.charsize = SCL_CHAR_SIZE_1X1;
     scfg.pnamesize = SCL_PN1WORD;
     scfg.platesize = SCL_PL_SIZE_1X1;
     scfg.coltype = SCL_COL_TYPE_256;
     scfg.flip = SCL_PN_12BIT;
     scfg.datatype = SCL_CELL;
     scfg.plate_addr[0] = SCL_VDP2_VRAM_A+0x0000;
     scfg.plate_addr[1] = SCL_VDP2_VRAM_A+0x2000;
     scfg.plate_addr[2] = SCL_VDP2_VRAM_A+0x4000;
     scfg.plate_addr[3] = SCL_VDP2_VRAM_A+0x6000;
     SCL_SetConfig(SCL_NBG0, &scfg);

     SCL_SetPriority (SCL_NBG0,7); / * Set priority to maximum * /

     SCL_SetCycleTable (n0_cycle); / * Set cycle pattern * /

     INT_SetScuFunc (.....); / * V-Blank routine registration * /

     set_imask (0); / * Enable interrupts. */

     SCL_Open (SCL_NBG0); / * NBG0 open processing * /      SCL_Move (FIXED (1), FIXED (1), 0); / * Various scroll operation functions * /           .           .           .      SCL_Close (SCL_NBG0); / * End scrolling * /

     SCL_DisplayFrame (); / * Wait for V_BLANK and scroll display * / }



Return to previous page Return to menu Go to next page