Previous 15994 Revisions Next

r10863 Friday 18th March, 2011 at 16:50:43 UTC by Angelo Salese
[SCD+32X]: couple of minor mods so that it doesn't just crash [David Haywood]
[src/mame/drivers]megadriv.c
[src/mame/machine]megadriv.c

src/mame/machine/megadriv.c
r10862r10863
27422742
27432743         if((a15106_reg & 4) == 0)
27442744         {
2745            printf("attempting to WRITE FIFO with 68S cleared!");
2745            printf("attempting to WRITE FIFO with 68S cleared!\n"); // corpse32
27462746            return;
27472747         }
27482748
r10862r10863
47444744{
47454745   int reg = CDC_REG0 & 0xF;
47464746   UINT8 ret = 0;
4747   int decode[0x10] = { 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0 };
4747   UINT16 decoderegs = 0x73F2;
47484748
4749   if (decode[reg])
4749   if ((decoderegs>>reg)&1)
47504750      CDC_DECODE |= (1 << reg);
47514751
4752   if (reg!=REG_R_STAT3)
4753      CDC_REG0 = (CDC_REG0 & 0xFFF0) | (reg+1);
4752   //if (reg!=REG_R_STAT3)
4753      CDC_REG0 = (CDC_REG0 & 0xFFF0) | ((reg+1)&0xf);
47544754
47554755
47564756   switch (reg)
r10862r10863
47774777         // ??
47784778         if ((CDC_CTRLB0 & 0x80) && (CDC_IFCTRL & 0x20))
47794779         {
4780            if ((CDC_DECODE & 0x73F2) == 0x73F2)
4780            if ((CDC_DECODE & decoderegs) == decoderegs)
47814781            CDC_STATB3 = 0x80;
47824782         }
47834783         break;
r10862r10863
97819781   MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback)
97829782
97839783
9784   MCFG_QUANTUM_PERFECT_CPU("maincpu")
9784   MCFG_QUANTUM_PERFECT_CPU("segacd_68k") // perfect sync to the fastest cpu
97859785MACHINE_CONFIG_END
97869786
97879787/* Different Softlists for different regions (for now at least) */
r10862r10863
98089808   MCFG_CPU_ADD("segacd_68k", M68000, SEGACD_CLOCK ) /* 12.5 MHz */
98099809   MCFG_CPU_PROGRAM_MAP(segacd_map)
98109810
9811   MCFG_TIMER_ADD("sw_timer", NULL) //stopwatch timer
9812   MCFG_NVRAM_ADD_0FILL("backupram")
9813   MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback)
9814
98119815   MCFG_SOUND_ADD( "cdda", CDDA, 0 )
98129816   MCFG_SOUND_ROUTE( 0, "lspeaker", 0.50 )
98139817   MCFG_SOUND_ROUTE( 1, "rspeaker", 0.50 )
r10862r10863
98179821   MCFG_SOUND_ROUTE( 1, "rspeaker", 0.25 )
98189822
98199823   MCFG_CDROM_ADD( "cdrom" )
9824   MCFG_CDROM_INTERFACE("scd_cdrom")
9825   MCFG_SOFTWARE_LIST_ADD("cd_list","segacd")
9826
9827   MCFG_QUANTUM_PERFECT_CPU("32x_master_sh2")
98209828MACHINE_CONFIG_END
98219829
98229830
src/mame/drivers/megadriv.c
r10862r10863
686686{
687687   DRIVER_INIT_CALL(_32x);
688688   DRIVER_INIT_CALL(mess_md_common);
689   megadrive_region_export = 1;
690   megadrive_region_pal = 0;
689691}
690692
691693static MACHINE_CONFIG_DERIVED( ms_32x, genesis_32x )
r10862r10863
11011103CONS( 1993, wmegam2,    xeye,      0,      genesis_scd,     md,     md_jpn,    "Victor", "Wondermega M2 (Japan, NTSC)", GAME_NOT_WORKING )
11021104CONS( 1994, cdx,        0,         0,      genesis_scd,     md,     genesis,   "Sega",   "CDX (USA, NTSC)", GAME_NOT_WORKING )
11031105CONS( 1994, multmega,   cdx,       0,      genesis_scd,     md,     md_eur,    "Sega",   "Multi-Mega (Europe, PAL)", GAME_NOT_WORKING )
1104CONS( 1994, 32x_scd,    segacd,    0,      genesis_32x_scd, md_sel, mess_32x,  "Sega",   "Sega CD (USA, NTSC, w/32X)", GAME_NOT_WORKING )
1106CONS( 1994, 32x_scd,    0,         0,      genesis_32x_scd, md_sel, mess_32x,  "Sega",   "Sega CD (USA, NTSC, w/32X)", GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team