trunk/src/mame/drivers/cv1k.c
| r26913 | r26914 | |
| 152 | 152 | - Used for mmmbanc, needs SH3 serial support. |
| 153 | 153 | |
| 154 | 154 | Remaining Video issues |
| 155 | - measure h/v video timing |
| 155 | 156 | - mmpork startup screen flicker - the FOR USE IN JAPAN screen doesn't appear on the real PCB until after the graphics are fully loaded, it still displays 'please wait' until that point. |
| 156 | 157 | - is the use of the 'scroll' registers 100% correct? (related to above?) |
| 157 | 158 | - Sometimes the 'sprites' in mushisam lag by a frame vs the 'backgrounds' is this a timing problem, does the real game do it? |
| r26913 | r26914 | |
| 215 | 216 | DECLARE_DRIVER_INIT(espgal2); |
| 216 | 217 | }; |
| 217 | 218 | |
| 218 | | /*************************************************************************** |
| 219 | | Video Hardware |
| 220 | | ***************************************************************************/ |
| 221 | 219 | |
| 220 | #define MASTER_CLOCK XTAL_12_8MHz |
| 221 | #define CPU_CLOCK (MASTER_CLOCK * 8) |
| 222 | 222 | |
| 223 | 223 | |
| 224 | |
| 225 | /**************************************************************************/ |
| 226 | |
| 224 | 227 | UINT32 cv1k_state::screen_update_cv1k(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| 225 | 228 | { |
| 226 | 229 | epic12_device::set_delay_scale(m_blitter, screen.machine().root_device().ioport(":BLITRATE")->read()); |
| r26913 | r26914 | |
| 402 | 405 | |
| 403 | 406 | |
| 404 | 407 | |
| 405 | | #define CAVE_CPU_CLOCK 12800000 * 8 |
| 406 | | #define CAVE_CPU_CLOCK_D 166666666 |
| 407 | | |
| 408 | | |
| 409 | 408 | // none of this is verified |
| 410 | 409 | // (the sh3 is different to the sh4 anyway, should be changed) |
| 411 | 410 | static const struct sh4_config sh4cpu_config = { |
| r26913 | r26914 | |
| 418 | 417 | 1, |
| 419 | 418 | 1, // md7 (master?) |
| 420 | 419 | 0, |
| 421 | | CAVE_CPU_CLOCK // influences music sequencing in ddpdfk at least |
| 420 | CPU_CLOCK // influences music sequencing in ddpdfk at least |
| 422 | 421 | }; |
| 423 | 422 | |
| 424 | 423 | |
| r26913 | r26914 | |
| 439 | 438 | |
| 440 | 439 | static MACHINE_CONFIG_START( cv1k, cv1k_state ) |
| 441 | 440 | /* basic machine hardware */ |
| 442 | | MCFG_CPU_ADD("maincpu", SH3BE, CAVE_CPU_CLOCK) |
| 441 | MCFG_CPU_ADD("maincpu", SH3BE, CPU_CLOCK) |
| 443 | 442 | MCFG_CPU_CONFIG(sh4cpu_config) |
| 444 | 443 | MCFG_CPU_PROGRAM_MAP(cv1k_map) |
| 445 | 444 | MCFG_CPU_IO_MAP(cv1k_port) |
| r26913 | r26914 | |
| 462 | 461 | MCFG_MACHINE_RESET_OVERRIDE(cv1k_state, cv1k) |
| 463 | 462 | |
| 464 | 463 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 465 | | MCFG_YMZ770_ADD("ymz770", 16384000) |
| 464 | MCFG_YMZ770_ADD("ymz770", XTAL_16_384MHz) |
| 466 | 465 | MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) |
| 467 | 466 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) |
| 468 | 467 | |
| r26913 | r26914 | |
| 473 | 472 | static MACHINE_CONFIG_DERIVED( cv1k_d, cv1k ) |
| 474 | 473 | MCFG_DEVICE_REMOVE("maincpu") |
| 475 | 474 | |
| 476 | | MCFG_CPU_ADD("maincpu", SH3BE, CAVE_CPU_CLOCK) |
| 475 | MCFG_CPU_ADD("maincpu", SH3BE, CPU_CLOCK) |
| 477 | 476 | MCFG_CPU_CONFIG(sh4cpu_config) |
| 478 | 477 | MCFG_CPU_PROGRAM_MAP(cv1k_d_map) |
| 479 | 478 | MCFG_CPU_IO_MAP(cv1k_port) |