Welcome!
Final Burn Neo => FBN Development => Topic started by: vbt on June 05, 2010, 10:14:03 AM
-
I'm working on porting your System 1 driver :)
(http://www.freeimagehosting.net/uploads/6ccbf4ac56.jpg)
I'm getting troubles with sprites could you help me to fix that ?
// 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
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 ?
-
Little progress :
(http://www.freeimagehosting.net/uploads/0885fec322.jpg)
-
another improvement but sprite decoding is not yet good :
(http://www.freeimagehosting.net/uploads/474aa9afcf.jpg)
-
fixed by changing the emulator, I still have to test on saturn.
(http://www.freeimagehosting.net/uploads/a6d47d1665.jpg)
-
Well, now I'm checking if it's difficult to add System 2 support :)
-
working on real saturn !
-
working on real saturn !
Cool :)
-
:cool:
(http://freeebayimagehost.com/images/vquqagpphurjxycozx5.jpg)
-
is there an easy way to add blockgal bootleg support ?
trying something like this :
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;
}