Author Topic: System 1 questions  (Read 7663 times)

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
System 1 questions
« on: June 05, 2010, 10:14:03 AM »
I'm working on porting your System 1 driver :)



I'm getting troubles with sprites could you help me to fix that ?

Quote
// 4bpp tiles
for (i=0;i<System1NumTiles*64;i+=2 )
{
cache[i>>1]=(System1Tiles[i+1]& 0x0f)| ((System1Tiles& 0x0f) <<4);
}

for (i=0;i<nTileRomNum*64;i+=2 )
{
aVRAM[0x880+(i>>1)]=(System1Sprites[i+1]& 0x0f)| ((System1Sprites& 0x0f) <<4);
}




I have some problems to setup charsize & charaddr
Quote
smsSprite[delta].charSize   = 0x100+ Height;
smsSprite[delta].charAddr   = 0x110 + Code;

char size is sprite size : 0x108 for 8x8,0x110 for 8x16, 0x210 for 16x16, etc
char addr is tile number but it's not clearly visible on system 1 driver, could you help me on these points ?
« Last Edit: June 06, 2010, 01:56:05 PM by vbt »

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #1 on: June 08, 2010, 04:29:54 PM »
Little progress :


Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #2 on: June 15, 2010, 04:20:01 PM »
another improvement but sprite decoding is not yet good :

« Last Edit: June 15, 2010, 04:22:49 PM by vbt »

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #3 on: September 06, 2010, 05:54:44 PM »
fixed by changing the emulator, I still have to test on saturn.


Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #4 on: January 04, 2011, 05:57:51 PM »
Well, now I'm checking if it's difficult to add System 2 support :)

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #5 on: February 07, 2011, 04:31:32 PM »
working on real saturn !

kev

  • Guest
Re: System 1 questions
« Reply #6 on: February 10, 2011, 02:35:13 PM »

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #7 on: March 31, 2011, 05:57:30 PM »
 :cool:

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: System 1 questions
« Reply #8 on: April 23, 2011, 07:27:13 AM »
is there an easy way to add blockgal bootleg support ?


trying something like this :
Code: [Select]
static struct BurnRomInfo BlckgalbRomDesc[] = {
{ "ic.62",               0x008000, 0xa99b231a, BRF_ESS | BRF_PRG }, //  0 Z80 #1 Program Code
// { "bg.109",            0x004000, 0xa6b573d5, BRF_ESS | BRF_PRG }, //  1 Z80 #1 Program Code

{ "bg.120",            0x002000, 0xd848faff, BRF_ESS | BRF_PRG }, //  2 Z80 #2 Program Code

{ "bg.62",             0x002000, 0x7e3ea4eb, BRF_GRA },   //  3 Tiles
{ "bg.61",             0x002000, 0x4dd3d39d, BRF_GRA },   //  4 Tiles
{ "bg.64",             0x002000, 0x17368663, BRF_GRA },   //  5 Tiles
{ "bg.63",             0x002000, 0x0c8bc404, BRF_GRA },   //  6 Tiles
{ "bg.66",             0x002000, 0x2b7dc4fa, BRF_GRA },   //  7 Tiles
{ "bg.65",             0x002000, 0xed121306, BRF_GRA },   //  8 Tiles

{ "bg.117",            0x004000, 0xe99cc920, BRF_GRA },   //  9 Sprites
{ "bg.04",             0x004000, 0x213057f8, BRF_GRA },   //  10 Sprites
{ "bg.110",            0x004000, 0x064c812c, BRF_GRA },   //  11 Sprites
{ "bg.05",             0x004000, 0x02e0b040, BRF_GRA },   //  12 Sprites
{ "pr5317.76",       0x000100, 0x648350b8, BRF_OPT },   //  13 Timing PROM

};

...

static int BlckgalbInit()
{
int nRet;

nRet = System1Init(1, 0x10000, 1, 0x2000, 6, 0x2000, 4, 0x4000, 1);

ZetOpen(0);
ZetSetInHandler(BlockgalZ801PortRead);
ZetClose();
MakeInputsFunction = BlockgalMakeInputs;

return nRet;
}
« Last Edit: April 23, 2011, 09:51:21 AM by vbt »