What's wrong with that code ?????

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 :

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();
 

vbt

Staff member
What's wrong with that code ?????

Can it be because I didn't set Cycle Table Pattern with :

Code:
SCL_SetCycleTable(TheTablePattern);
 

IceDigger

Founder
Staff member
What's wrong with that code ?????

No clue. I'm not a programer but it looked like you wanted someone to answer fast.
 

vbt

Staff member
What's wrong with that code ?????

Originally posted by IceMan2k@Aug 17, 2003 @ 09:52 PM

No clue. I'm not a programer but it looked like you wanted someone to answer fast.

You're right but I thought I would go on holidays one week later and then had one full week to work on saturn dev... I left home next day after this post :blush:

I still appreciate some help for this bug, I'm sure it's not so hard to solve the problem. Maybe someone have the answer I'd like to avoid to modify my code and waste CDs.

I'll buy a PAR soon and a CommLink :D I'm comparing price of each online resellers :

FR Comlink price : 27€

HK Comlink price : 10$

FR PAR : 54€

Lik Sang PAR : 28$

:(
 
What's wrong with that code ?????

whoa and I thought it was expensive in the Netherlands!

I paid 20e for my comms card and 36e for the PAR...
 

vbt

Staff member
What's wrong with that code ?????

Problem corrected :D :D The picture is displayed on a real Saturn. :D
 
Top