Previous 15994 Revisions Next

r12525 Monday 8th August, 2011 at 13:27:55 UTC by Angelo Salese
Let's delay commands a bit more when they are shot, get consistant boots with Dracula X
[src/mame/drivers]saturn.c
[src/mame/includes]stv.h
[src/mame/machine]stvcd.c stvcd.h

src/mame/machine/stvcd.c
r12524r12525
106106
107107// local variables
108108static timer_device *sector_timer;
109static timer_device *sh1_timer;
109110static partitionT partitions[MAX_FILTERS];
110111static partitionT *transpart;
111112
r12524r12525
11961197
11971198TIMER_DEVICE_CALLBACK( stv_sh1_sim )
11981199{
1200   sh1_timer->adjust(attotime::from_hz(16667));
1201
11991202   if(cmd_pending)
12001203   {
12011204      cd_exec_command(timer.machine());
r12524r12525
13011304
13021305   sector_timer = machine.device<timer_device>("sector_timer");
13031306   sector_timer->adjust(attotime::from_hz(150));   // 150 sectors / second = 300kBytes/second
1307   sh1_timer = machine.device<timer_device>("sh1_cmd");
1308   sh1_timer->adjust(attotime::from_hz(16667));
13041309}
13051310
13061311static blockT *cd_alloc_block(UINT8 *blknum)
r12524r12525
16261631   case 0x0026:
16271632//              CDROM_LOG(("WW CR4: %04x\n", data))
16281633      cr4 = data;
1634      sh1_timer->reset();
1635      sh1_timer->adjust(attotime::from_hz(16667));
16291636      break;
16301637   default:
16311638      CDROM_LOG(("CD: WW %08x %04x\n", addr, data))
src/mame/machine/stvcd.h
r12524r12525
1313void stvcd_exit(running_machine& machine);
1414
1515TIMER_DEVICE_CALLBACK( stv_sector_cb );
16TIMER_DEVICE_CALLBACK( stv_sh1_sim );
1617
1718READ32_HANDLER( stvcd_r );
1819WRITE32_HANDLER( stvcd_w );
src/mame/includes/stv.h
r12524r12525
209209
210210VIDEO_START ( stv_vdp2 );
211211SCREEN_UPDATE( stv_vdp2 );
212
213TIMER_DEVICE_CALLBACK( stv_sh1_sim );
src/mame/drivers/saturn.c
r12524r12525
19991999   MCFG_CPU_ADD("audiocpu", M68000, 11289600) //11.2896 MHz
20002000   MCFG_CPU_PROGRAM_MAP(sound_mem)
20012001
2002   MCFG_TIMER_ADD_PERIODIC("sh1_cmd", stv_sh1_sim, attotime::from_hz(16667))
2003
20042002   MCFG_MACHINE_START(saturn)
20052003   MCFG_MACHINE_RESET(saturn)
20062004
20072005   MCFG_NVRAM_HANDLER(saturn)
20082006
20092007   MCFG_TIMER_ADD("sector_timer", stv_sector_cb)
2008   MCFG_TIMER_ADD("sh1_cmd", stv_sh1_sim)
20102009
20112010   /* video hardware */
20122011   MCFG_SCREEN_ADD("screen", RASTER)
r12524r12525
20512050   MCFG_CPU_ADD("audiocpu", M68000, 11289600) //11.2896 MHz
20522051   MCFG_CPU_PROGRAM_MAP(sound_mem)
20532052
2054   MCFG_TIMER_ADD_PERIODIC("sh1_cmd", stv_sh1_sim, attotime::from_hz(16667))
2055
20562053   MCFG_MACHINE_START(stv)
20572054   MCFG_MACHINE_RESET(stv)
20582055
20592056   MCFG_EEPROM_93C46_ADD("eeprom") /* Actually 93c45 */
20602057
20612058   MCFG_TIMER_ADD("sector_timer", stv_sector_cb)
2059   MCFG_TIMER_ADD("sh1_cmd", stv_sh1_sim)
20622060
20632061   /* video hardware */
20642062   MCFG_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team