trunk/src/mame/drivers/megaphx.c
| r29517 | r29518 | |
| 56 | 56 | |
| 57 | 57 | #include "emu.h" |
| 58 | 58 | #include "cpu/m68000/m68000.h" |
| 59 | #include "cpu/pic16c5x/pic16c5x.h" |
| 59 | 60 | |
| 60 | 61 | |
| 61 | 62 | |
| r29517 | r29518 | |
| 358 | 359 | }; |
| 359 | 360 | |
| 360 | 361 | |
| 362 | static ADDRESS_MAP_START( megaphx_pic_io_map, AS_IO, 8, megaphx_state ) |
| 363 | // AM_RANGE(0x00, 0x00) AM_WRITE(playmark_oki_banking_w) |
| 364 | // AM_RANGE(0x01, 0x01) AM_READWRITE(playmark_snd_command_r, playmark_oki_w) |
| 365 | // AM_RANGE(0x02, 0x02) AM_READWRITE(playmark_snd_flag_r, playmark_snd_control_w) |
| 366 | // AM_RANGE(PIC16C5x_T0, PIC16C5x_T0) AM_READ(PIC16C5X_T0_clk_r) |
| 367 | ADDRESS_MAP_END |
| 361 | 368 | |
| 369 | |
| 362 | 370 | static MACHINE_CONFIG_START( megaphx, megaphx_state ) |
| 363 | 371 | |
| 364 | 372 | MCFG_CPU_ADD("maincpu", M68000, 8000000) // ?? can't read xtal due to reflections, CPU is an 8Mhz part |
| 365 | 373 | MCFG_CPU_PROGRAM_MAP(megaphx_68k_map) |
| 366 | 374 | |
| 375 | MCFG_CPU_ADD("pic", PIC16C54, 12000000) /* 3MHz */ |
| 376 | /* Program and Data Maps are internal to the MCU */ |
| 377 | MCFG_CPU_IO_MAP(megaphx_pic_io_map) |
| 367 | 378 | |
| 379 | |
| 368 | 380 | MCFG_INDER_AUDIO_ADD("inder_sb") |
| 369 | 381 | |
| 370 | 382 | MCFG_I8255A_ADD( "ppi8255_0", ppi8255_intf_0 ) |
| r29517 | r29518 | |
| 408 | 420 | ROM_REGION( 0x100000, "inder_sb:audiocpu", 0 ) |
| 409 | 421 | ROM_LOAD( "sonido_mph0.u35", 0x000000, 0x2000, CRC(abc1b140) SHA1(8384a162d85cf9ea870d22f44b1ca64001c6a083) ) |
| 410 | 422 | |
| 423 | ROM_REGION( 0x100000, "pic", 0 ) |
| 424 | ROM_LOAD( "pic16c54-xt.bin", 0x000000, 0x430, CRC(21f396fb) SHA1(c8badb9b3681e684bced0ced1de4c3a15641de8b) ) |
| 425 | |
| 411 | 426 | ROM_REGION( 0x100000, "pals", 0 ) // jedutil won't convert these? are they bad? |
| 412 | 427 | ROM_LOAD( "p31_u31_palce16v8h-25.jed", 0x000, 0xbd4, CRC(05ef04b7) SHA1(330dd81a832b6675fb0473868c26fe9bec2da854) ) |
| 413 | 428 | ROM_LOAD( "p40_u29_palce16v8h-25.jed", 0x000, 0xbd4, CRC(44b7e51c) SHA1(b8b34f3b319d664ec3ad72ed87d9f65701f183a5) ) |
| 414 | | |
| 415 | | // there is a PIC responsible for some I/O tasks (what type? what internal rom size?) |
| 416 | 429 | ROM_END |
| 417 | 430 | |
| 418 | 431 | GAME( 1991, megaphx, 0, megaphx, megaphx, megaphx_state, megaphx, ROT0, "Dinamic / Inder", "Mega Phoenix", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |