vbt
Staff member
What's wrong with that code ?????
I wanted to release a bootloader with a bg but it seems onnly the siple release work, I burnt 2 CDs with some modifications and I see nothing but pad management work and the other progs are loaded. Here is the code which cause problem :
I wanted to release a bootloader with a bg but it seems onnly the siple release work, I burnt 2 CDs with some modifications and I see nothing but pad management work and the other progs are loaded. Here is the code which cause problem :
Code:
*(volatile Uint16 *)0x25F80000 &= 0x7fff;
set_imask(0);
SCL_Vdp2Init();
SCL_SetColRamMode(SCL_CRM15_1024);
SetVblank();
SCL_SetFrameInterval(-1);
SCL_DisplayFrame();
SCL_DisplayFrame();
(void)LoadFile("MENU.BIN",(unsigned char *)&bitmap_data[0] , sizeof(bitmap_data));
load_color_proms("MENUPAL.BIN",&palette[0]);
SCL_AllocColRam(SCL_NBG0,256,OFF);
SCL_SetColRam(SCL_NBG0,0,256,palette);
SCL_SetPriority(SCL_NBG1,5);
SCL_SetPriority(SCL_NBG0,6);
BackCol = 0x0000;
SCL_SetBack(SCL_VDP2_VRAM+0x80000-2,1,&BackCol);
SCL_InitVramConfigTb(&vramConfig);
vramConfig.vramModeA = ON;
vramConfig.vramModeB = ON;
SCL_SetVramConfig(&vramConfig);
SCL_InitConfigTb(&config);
config.dispenbl = ON;
config.bmpsize = SCL_BMP_SIZE_512X512;
config.coltype = SCL_COL_TYPE_256;
config.datatype = SCL_BITMAP;
config.mapover = SCL_OVER_0;
config.plate_addr[0] = SCL_VDP2_VRAM_B0;
SCL_SetConfig(SCL_NBG0, &config);
SCL_SetDisplayMode(SCL_NON_INTER,SCL_240LINE,SCL_NORMAL_A);
SCL_SetFrameInterval(1);
VDP2_InitVRAM();
PER_SMPC_RES_ENA();
FNT_SetBuffSize(512,256,1);
VramWorkP = (Uint8 *)SCL_VDP2_VRAM_B0;
l=0;
j=0;
for (y = 0; y < 240; y++)
{
for (x = 0; x < 320; x++)
{
VramWorkP[l] = bitmap_data[j];
j++;
l++;
}
l += 192;
}
SCL_Open(SCL_NBG0);
SCL_MoveTo(FIXED(0), FIXED(0),0);
SCL_Scale(FIXED(1.0), FIXED(1.0));
SCL_Close();