src/mame/machine/stvcd.c
| r12524 | r12525 | |
| 106 | 106 | |
| 107 | 107 | // local variables |
| 108 | 108 | static timer_device *sector_timer; |
| 109 | static timer_device *sh1_timer; |
| 109 | 110 | static partitionT partitions[MAX_FILTERS]; |
| 110 | 111 | static partitionT *transpart; |
| 111 | 112 | |
| r12524 | r12525 | |
| 1196 | 1197 | |
| 1197 | 1198 | TIMER_DEVICE_CALLBACK( stv_sh1_sim ) |
| 1198 | 1199 | { |
| 1200 | sh1_timer->adjust(attotime::from_hz(16667)); |
| 1201 | |
| 1199 | 1202 | if(cmd_pending) |
| 1200 | 1203 | { |
| 1201 | 1204 | cd_exec_command(timer.machine()); |
| r12524 | r12525 | |
| 1301 | 1304 | |
| 1302 | 1305 | sector_timer = machine.device<timer_device>("sector_timer"); |
| 1303 | 1306 | 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)); |
| 1304 | 1309 | } |
| 1305 | 1310 | |
| 1306 | 1311 | static blockT *cd_alloc_block(UINT8 *blknum) |
| r12524 | r12525 | |
| 1626 | 1631 | case 0x0026: |
| 1627 | 1632 | // CDROM_LOG(("WW CR4: %04x\n", data)) |
| 1628 | 1633 | cr4 = data; |
| 1634 | sh1_timer->reset(); |
| 1635 | sh1_timer->adjust(attotime::from_hz(16667)); |
| 1629 | 1636 | break; |
| 1630 | 1637 | default: |
| 1631 | 1638 | CDROM_LOG(("CD: WW %08x %04x\n", addr, data)) |
src/mame/drivers/saturn.c
| r12524 | r12525 | |
| 1999 | 1999 | MCFG_CPU_ADD("audiocpu", M68000, 11289600) //11.2896 MHz |
| 2000 | 2000 | MCFG_CPU_PROGRAM_MAP(sound_mem) |
| 2001 | 2001 | |
| 2002 | | MCFG_TIMER_ADD_PERIODIC("sh1_cmd", stv_sh1_sim, attotime::from_hz(16667)) |
| 2003 | | |
| 2004 | 2002 | MCFG_MACHINE_START(saturn) |
| 2005 | 2003 | MCFG_MACHINE_RESET(saturn) |
| 2006 | 2004 | |
| 2007 | 2005 | MCFG_NVRAM_HANDLER(saturn) |
| 2008 | 2006 | |
| 2009 | 2007 | MCFG_TIMER_ADD("sector_timer", stv_sector_cb) |
| 2008 | MCFG_TIMER_ADD("sh1_cmd", stv_sh1_sim) |
| 2010 | 2009 | |
| 2011 | 2010 | /* video hardware */ |
| 2012 | 2011 | MCFG_SCREEN_ADD("screen", RASTER) |
| r12524 | r12525 | |
| 2051 | 2050 | MCFG_CPU_ADD("audiocpu", M68000, 11289600) //11.2896 MHz |
| 2052 | 2051 | MCFG_CPU_PROGRAM_MAP(sound_mem) |
| 2053 | 2052 | |
| 2054 | | MCFG_TIMER_ADD_PERIODIC("sh1_cmd", stv_sh1_sim, attotime::from_hz(16667)) |
| 2055 | | |
| 2056 | 2053 | MCFG_MACHINE_START(stv) |
| 2057 | 2054 | MCFG_MACHINE_RESET(stv) |
| 2058 | 2055 | |
| 2059 | 2056 | MCFG_EEPROM_93C46_ADD("eeprom") /* Actually 93c45 */ |
| 2060 | 2057 | |
| 2061 | 2058 | MCFG_TIMER_ADD("sector_timer", stv_sector_cb) |
| 2059 | MCFG_TIMER_ADD("sh1_cmd", stv_sh1_sim) |
| 2062 | 2060 | |
| 2063 | 2061 | /* video hardware */ |
| 2064 | 2062 | MCFG_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) |