kodb sprite improvement

This commit is contained in:
Barry Harris 2012-12-06 20:51:15 +00:00
parent 2a52727558
commit 2c458c30f1
2 changed files with 7 additions and 6 deletions

View File

@ -469,12 +469,7 @@ INT32 KodbObjGet()
pof->nShiftX = -0x40;
pof->nShiftY = -0x10;
// needs to alternate between the two sprite ram areas to achieve flashing
INT32 nOff = BURN_ENDIAN_SWAP_INT16(*((UINT16*)(CpsRamFF + 0x1256))) << 8;
nOff &= 0xffff;
nOff += 0x1140;
Get = CpsRam90 + nOff;
Get = CpsBootlegSpriteRam + 0x1000;
if (Get==NULL) return 1;
@ -510,6 +505,8 @@ INT32 KodbObjGet()
if (nGetNext >= nFrameCount) {
nGetNext = 0;
}
memset(CpsBootlegSpriteRam, 0, 0x3000);
return 0;
}

View File

@ -12414,7 +12414,11 @@ static INT32 KodbInit()
nRet = DrvInit();
CpsBootlegSpriteRam = (UINT8*)BurnMalloc(0x3000);
SekOpen(0);
SekMapMemory(CpsBootlegSpriteRam, 0x900000, 0x902fff, SM_RAM);
SekMapMemory(CpsBootlegSpriteRam, 0x904000, 0x906fff, SM_RAM);
SekMapHandler(1, 0x980000, 0x99ffff, SM_WRITE);
SekSetWriteByteHandler(1, Kodb98WriteByte);
SekSetWriteWordHandler(1, Kodb98WriteWord);