Add another game for testing

This commit is contained in:
tmaul 2013-01-28 21:35:02 +00:00
parent 383d2cbb48
commit 92e446cb7b
2 changed files with 68 additions and 51 deletions

View File

@ -38,7 +38,7 @@ STD_ROM_FN(sms_akmw)
struct BurnDriverD BurnDrvsms_akmw = {
"sms_akmw", NULL, NULL, NULL, "1990",
"Alex Kidd\0", NULL, "SEGA", "Master System",
"sms Alex Kidd\0", NULL, "SEGA", "Master System",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING, 5, HARDWARE_SEGA_MASTER_SYSTEM, GBF_MISC, 0,
SMSGetZipName, sms_akmwRomInfo, sms_akmwRomName, NULL, NULL, SMSInputInfo, SMSDIPInfo,
@ -47,3 +47,21 @@ struct BurnDriverD BurnDrvsms_akmw = {
};
static struct BurnRomInfo sms_sonicRomDesc[] = {
{ "sms_sonic.sms", 524288, 0xD6F2BFCA, BRF_PRG | BRF_ESS },
};
STD_ROM_PICK(sms_sonic)
STD_ROM_FN(sms_sonic)
struct BurnDriverD BurnDrvsms_sonic = {
"sms_sonic", NULL, NULL, NULL, "1990",
"sms sonic\0", NULL, "SEGA", "Master System",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING, 5, HARDWARE_SEGA_MASTER_SYSTEM, GBF_MISC, 0,
SMSGetZipName, sms_sonicRomInfo, sms_sonicRomName, NULL, NULL, SMSInputInfo, SMSDIPInfo,
SMSInit, SMSExit, SMSFrame, SMSDraw, SMSScan,
&SMSPaletteRecalc, 0x400, 512, 240, 4, 3
};

View File

@ -107,12 +107,10 @@ INT32 MdrawInit()
void MdrawCall()
{
// Draw line at 1 byte per pixel
UINT16 *pd;
UINT16 *pe;
UINT32 *pwp;
UINT16 *pLine=NULL;
UINT8 *ps=NULL;
// Find destination line
@ -985,7 +983,7 @@ void DrvCalcPalette()
// Precalc the whole 4096 color palette
for (i=0; i<0x1000; i++)
{
int r,g,b,c;
int r,g,b;
r=i&15;
g=(i>>4)&15;
b=(i>>8)&15;
@ -1143,3 +1141,4 @@ INT32 SMSScan(INT32 nAction, INT32 *pnMin)
return 0;
}