Previous 199869 Revisions Next

r29518 Friday 11th April, 2014 at 00:39:54 UTC by David Haywood
added PIC dump to Mega Phoenix [Enricnes (from AUMAP)]

(the dump looks good - full 12-bit data for each word, it should handle the I/O stuff, haven't replaced my simulation code yet yho, not sure how to hook it up properly)
[src/mame/drivers]megaphx.c

trunk/src/mame/drivers/megaphx.c
r29517r29518
5656
5757#include "emu.h"
5858#include "cpu/m68000/m68000.h"
59#include "cpu/pic16c5x/pic16c5x.h"
5960
6061
6162
r29517r29518
358359};
359360
360361
362static 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)
367ADDRESS_MAP_END
361368
369
362370static MACHINE_CONFIG_START( megaphx, megaphx_state )
363371
364372   MCFG_CPU_ADD("maincpu", M68000, 8000000) // ??  can't read xtal due to reflections, CPU is an 8Mhz part
365373   MCFG_CPU_PROGRAM_MAP(megaphx_68k_map)
366374
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)
367378
379
368380   MCFG_INDER_AUDIO_ADD("inder_sb")
369381
370382   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_intf_0 )
r29517r29518
408420   ROM_REGION( 0x100000, "inder_sb:audiocpu", 0 )
409421   ROM_LOAD( "sonido_mph0.u35", 0x000000, 0x2000,  CRC(abc1b140) SHA1(8384a162d85cf9ea870d22f44b1ca64001c6a083) )
410422
423   ROM_REGION( 0x100000, "pic", 0 )
424   ROM_LOAD( "pic16c54-xt.bin", 0x000000, 0x430,  CRC(21f396fb) SHA1(c8badb9b3681e684bced0ced1de4c3a15641de8b) )
425
411426   ROM_REGION( 0x100000, "pals", 0 ) // jedutil won't convert these? are they bad?
412427   ROM_LOAD( "p31_u31_palce16v8h-25.jed", 0x000, 0xbd4, CRC(05ef04b7) SHA1(330dd81a832b6675fb0473868c26fe9bec2da854) )
413428   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?)
416429ROM_END
417430
418431GAME( 1991, megaphx,  0,        megaphx, megaphx, megaphx_state, megaphx, ROT0, "Dinamic / Inder", "Mega Phoenix", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team