📄 zaccaria.c
字号:
/***************************************************************************
Game driver(s)
***************************************************************************/
ROM_START( monymony_rom )
ROM_REGION(0x10000) /* 64k for code */
ROM_LOAD( "1a", 0x0000, 0x1000, 0x13c227ca )
ROM_CONTINUE( 0x8000, 0x1000 )
ROM_LOAD( "1b", 0x1000, 0x1000, 0x87372545 )
ROM_CONTINUE( 0x9000, 0x1000 )
ROM_LOAD( "1c", 0x2000, 0x1000, 0x6aea9c01 )
ROM_CONTINUE( 0xa000, 0x1000 )
ROM_LOAD( "1d", 0x3000, 0x1000, 0x5fdec451 )
ROM_CONTINUE( 0xb000, 0x1000 )
ROM_LOAD( "2a", 0x4000, 0x1000, 0xaf830e3c )
ROM_CONTINUE( 0xc000, 0x1000 )
ROM_LOAD( "2c", 0x5000, 0x1000, 0x31da62b1 )
ROM_CONTINUE( 0xd000, 0x1000 )
ROM_REGION_DISPOSE(0x6000) /* temporary space for graphics (disposed after conversion) */
ROM_LOAD( "2d", 0x0000, 0x2000, 0x82ab4d1a )
ROM_LOAD( "1f", 0x2000, 0x2000, 0x40d4e4d1 )
ROM_LOAD( "1e", 0x4000, 0x2000, 0x36980455 )
ROM_REGION(0x0400) /* color proms */
ROM_LOAD( "monymony.9g", 0x0000, 0x0200, 0xfc9a0f21 )
ROM_LOAD( "monymony.9f", 0x0200, 0x0200, 0x93106704 )
/* there are also sound ROMs. CPU is 6802, not emulated yet */
ROM_REGION(0x2000)
ROM_LOAD( "1g", 0x0000, 0x2000, 0x1e8ffe3e )
ROM_LOAD( "1h", 0x0000, 0x2000, 0xaad76193 )
ROM_LOAD( "1i", 0x0000, 0x2000, 0x94e3858b )
ROM_LOAD( "2g", 0x0000, 0x2000, 0x78b01b98 )
ROM_END
ROM_START( jackrabt_rom )
ROM_REGION(0x10000) /* 64k for code */
ROM_LOAD( "cpu-01.1a", 0x0000, 0x1000, 0x499efe97 )
ROM_CONTINUE( 0x8000, 0x1000 )
ROM_LOAD( "cpu-01.2l", 0x1000, 0x1000, 0x4772e557 )
ROM_LOAD( "cpu-01.3l", 0x2000, 0x1000, 0x1e844228 )
ROM_LOAD( "cpu-01.4l", 0x3000, 0x1000, 0xebffcc38 )
ROM_LOAD( "cpu-01.5l", 0x4000, 0x1000, 0x275e0ed6 )
ROM_LOAD( "cpu-01.6l", 0x5000, 0x1000, 0x8a20977a )
ROM_LOAD( "cpu-01.2h", 0x9000, 0x1000, 0x21f2be2a )
ROM_LOAD( "cpu-01.3h", 0xa000, 0x1000, 0x59077027 )
ROM_LOAD( "cpu-01.4h", 0xb000, 0x1000, 0x0b9db007 )
ROM_LOAD( "cpu-01.5h", 0xc000, 0x1000, 0x785e1a01 )
ROM_LOAD( "cpu-01.6h", 0xd000, 0x1000, 0xdd5979cf )
ROM_REGION_DISPOSE(0x6000) /* temporary space for graphics (disposed after conversion) */
ROM_LOAD( "1bg.2d", 0x0000, 0x2000, 0x9f880ef5 )
ROM_LOAD( "2bg.1f", 0x2000, 0x2000, 0xafc04cd7 )
ROM_LOAD( "3bg.1e", 0x4000, 0x2000, 0x14f23cdd )
ROM_REGION(0x0400) /* color proms */
ROM_LOAD( "jr-ic9g", 0x0000, 0x0200, 0x85577107 )
ROM_LOAD( "jr-ic9f", 0x0200, 0x0200, 0x085914d1 )
/* there are also sound ROMs. CPU is 6802, not emulated yet */
ROM_REGION(0x2000)
ROM_LOAD( "7snd.1g", 0x0000, 0x2000, 0xc722eff8 )
ROM_LOAD( "8snd.1h", 0x0000, 0x2000, 0xf4507111 )
ROM_LOAD( "9snd.1i", 0x0000, 0x2000, 0x3dab977f )
ROM_LOAD( "13snd.2g", 0x0000, 0x2000, 0xfc05654e )
ROM_END
ROM_START( jackrab2_rom )
ROM_REGION(0x10000) /* 64k for code */
ROM_LOAD( "1cpu2.1a", 0x0000, 0x1000, 0xf9374113 )
ROM_CONTINUE( 0x8000, 0x1000 )
ROM_LOAD( "2cpu2.1b", 0x1000, 0x1000, 0x0a0eea4a )
ROM_CONTINUE( 0x9000, 0x1000 )
ROM_LOAD( "3cpu2.1c", 0x2000, 0x1000, 0x291f5772 )
ROM_CONTINUE( 0xa000, 0x1000 )
ROM_LOAD( "4cpu2.1d", 0x3000, 0x1000, 0x10972cfb )
ROM_CONTINUE( 0xb000, 0x1000 )
ROM_LOAD( "5cpu2.2a", 0x4000, 0x1000, 0xaa95d06d )
ROM_CONTINUE( 0xc000, 0x1000 )
ROM_LOAD( "6cpu2.2c", 0x5000, 0x1000, 0x404496eb )
ROM_CONTINUE( 0xd000, 0x1000 )
ROM_REGION_DISPOSE(0x6000) /* temporary space for graphics (disposed after conversion) */
ROM_LOAD( "1bg.2d", 0x0000, 0x2000, 0x9f880ef5 )
ROM_LOAD( "2bg.1f", 0x2000, 0x2000, 0xafc04cd7 )
ROM_LOAD( "3bg.1e", 0x4000, 0x2000, 0x14f23cdd )
ROM_REGION(0x0400) /* color proms */
ROM_LOAD( "jr-ic9g", 0x0000, 0x0200, 0x85577107 )
ROM_LOAD( "jr-ic9f", 0x0200, 0x0200, 0x085914d1 )
/* there are also sound ROMs. CPU is 6802, not emulated yet */
ROM_REGION(0x2000)
ROM_LOAD( "7snd.1g", 0x0000, 0x2000, 0xc722eff8 )
ROM_LOAD( "8snd.1h", 0x0000, 0x2000, 0xf4507111 )
ROM_LOAD( "9snd.1i", 0x0000, 0x2000, 0x3dab977f )
ROM_LOAD( "13snd.2g", 0x0000, 0x2000, 0xfc05654e )
ROM_END
ROM_START( jackrabs_rom )
ROM_REGION(0x10000) /* 64k for code */
ROM_LOAD( "1cpu.1a", 0x0000, 0x1000, 0x6698dc65 )
ROM_CONTINUE( 0x8000, 0x1000 )
ROM_LOAD( "2cpu.1b", 0x1000, 0x1000, 0x42b32929 )
ROM_CONTINUE( 0x9000, 0x1000 )
ROM_LOAD( "3cpu.1c", 0x2000, 0x1000, 0x89b50c9a )
ROM_CONTINUE( 0xa000, 0x1000 )
ROM_LOAD( "4cpu.1d", 0x3000, 0x1000, 0xd5520665 )
ROM_CONTINUE( 0xb000, 0x1000 )
ROM_LOAD( "5cpu.2a", 0x4000, 0x1000, 0x0f9a093c )
ROM_CONTINUE( 0xc000, 0x1000 )
ROM_LOAD( "6cpu.2c", 0x5000, 0x1000, 0xf53d6356 )
ROM_CONTINUE( 0xd000, 0x1000 )
ROM_REGION_DISPOSE(0x6000) /* temporary space for graphics (disposed after conversion) */
ROM_LOAD( "1bg.2d", 0x0000, 0x2000, 0x9f880ef5 )
ROM_LOAD( "2bg.1f", 0x2000, 0x2000, 0xafc04cd7 )
ROM_LOAD( "3bg.1e", 0x4000, 0x2000, 0x14f23cdd )
ROM_REGION(0x0400) /* color proms */
ROM_LOAD( "jr-ic9g", 0x0000, 0x0200, 0x85577107 )
ROM_LOAD( "jr-ic9f", 0x0200, 0x0200, 0x085914d1 )
/* there are also sound ROMs. CPU is 6802, not emulated yet */
ROM_REGION(0x2000)
ROM_LOAD( "7snd.1g", 0x0000, 0x2000, 0xc722eff8 )
ROM_LOAD( "8snd.1h", 0x0000, 0x2000, 0xf4507111 )
ROM_LOAD( "9snd.1i", 0x0000, 0x2000, 0x3dab977f )
ROM_LOAD( "13snd.2g", 0x0000, 0x2000, 0xfc05654e )
ROM_END
static int monymony_hiload(void)
{
unsigned char *RAM = Machine->memory_region[Machine->drv->cpu[0].memory_region];
/* check if the hi score table has already been initialized */
if ((memcmp(&RAM[0x7512],"\x0a\x0a\x0a",3) == 0) &&
(memcmp(&RAM[0x7519],"\x0b\x0b\x0b",3) == 0))
{
void *f;
if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_HIGHSCORE,0)) != 0)
{
osd_fread(f,&RAM[0x7512],8*6);
osd_fread(f,&RAM[0x7542],8*3);
RAM[0x726d] = RAM[0x7542];
RAM[0x726e] = RAM[0x7543];
RAM[0x726f] = RAM[0x7544];
osd_fclose(f);
}
return 1;
}
else return 0; /* we can't load the hi scores yet */
}
static void monymony_hisave(void)
{
void *f;
unsigned char *RAM = Machine->memory_region[Machine->drv->cpu[0].memory_region];
if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_HIGHSCORE,1)) != 0)
{
osd_fwrite(f,&RAM[0x7512],8*6);
osd_fwrite(f,&RAM[0x7542],8*3);
osd_fclose(f);
}
}
static int jackrabt_hiload(void)
{
unsigned char *RAM = Machine->memory_region[Machine->drv->cpu[0].memory_region];
/* check if the hi score table has already been initialized */
if ((memcmp(&RAM[0x73ba],"\x0a\x0a\x0a",3) == 0) &&
(memcmp(&RAM[0x73c2],"\x0b\x0b\x0b",3) == 0))
{
void *f;
if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_HIGHSCORE,0)) != 0)
{
osd_fread(f,&RAM[0x73ba],8*6);
osd_fread(f,&RAM[0x73ea],8*3);
RAM[0x727d] = RAM[0x73ea];
RAM[0x727e] = RAM[0x73eb];
RAM[0x727f] = RAM[0x73ec];
osd_fclose(f);
}
return 1;
}
else return 0; /* we can't load the hi scores yet */
}
static void jackrabt_hisave(void)
{
void *f;
unsigned char *RAM = Machine->memory_region[Machine->drv->cpu[0].memory_region];
if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_HIGHSCORE,1)) != 0)
{
osd_fwrite(f,&RAM[0x73ba],8*6);
osd_fwrite(f,&RAM[0x73ea],8*3);
osd_fclose(f);
}
}
struct GameDriver monymony_driver =
{
__FILE__,
0,
"monymony",
"Money Money",
"1983",
"Zaccaria",
"Nicola Salmoria",
0,
&machine_driver,
0,
monymony_rom,
0, 0,
0,
0, /* sound_prom */
input_ports,
PROM_MEMORY_REGION(2), 0, 0,
ORIENTATION_ROTATE_90,
monymony_hiload, monymony_hisave
};
struct GameDriver jackrabt_driver =
{
__FILE__,
0,
"jackrabt",
"Jack Rabbit (set 1)",
"1984",
"Zaccaria",
"Nicola Salmoria",
0,
&machine_driver,
0,
jackrabt_rom,
0, 0,
0,
0, /* sound_prom */
input_ports,
PROM_MEMORY_REGION(2), 0, 0,
ORIENTATION_ROTATE_90,
jackrabt_hiload, jackrabt_hisave
};
struct GameDriver jackrab2_driver =
{
__FILE__,
&jackrabt_driver,
"jackrab2",
"Jack Rabbit (set 2)",
"1984",
"Zaccaria",
"Nicola Salmoria",
0,
&machine_driver,
0,
jackrab2_rom,
0, 0,
0,
0, /* sound_prom */
input_ports,
PROM_MEMORY_REGION(2), 0, 0,
ORIENTATION_ROTATE_90,
jackrabt_hiload, jackrabt_hisave
};
struct GameDriver jackrabs_driver =
{
__FILE__,
&jackrabt_driver,
"jackrabs",
"Jack Rabbit (special)",
"1984",
"Zaccaria",
"Nicola Salmoria",
0,
&machine_driver,
0,
jackrabs_rom,
0, 0,
0,
0, /* sound_prom */
input_ports,
PROM_MEMORY_REGION(2), 0, 0,
ORIENTATION_ROTATE_90,
jackrabt_hiload, jackrabt_hisave
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -