Previous 199869 Revisions Next

r31533 Wednesday 6th August, 2014 at 21:39:43 UTC by hap
- allow RP5C01 clock of 0
- from 2600: (punchout cab) on the real machine the 2A03 comes out of the right speaker and the VLM5030 comes out of the left.
[src/emu/machine]rp5c01.c
[src/mame/drivers]punchout.c

trunk/src/emu/machine/rp5c01.c
r31532r31533
198198   m_out_alarm_cb.resolve_safe();
199199
200200   // allocate timers
201   m_clock_timer = timer_alloc(TIMER_CLOCK);
202   m_clock_timer->adjust(attotime::from_hz(clock() / 16384), 0, attotime::from_hz(clock() / 16384));
201   if (clock() > 0)
202   {
203      m_clock_timer = timer_alloc(TIMER_CLOCK);
204      m_clock_timer->adjust(attotime::from_hz(clock() / 16384), 0, attotime::from_hz(clock() / 16384));
203205
204   m_16hz_timer = timer_alloc(TIMER_16HZ);
205   m_16hz_timer->adjust(attotime::from_hz(clock() / 1024), 0, attotime::from_hz(clock() / 1024));
206      m_16hz_timer = timer_alloc(TIMER_16HZ);
207      m_16hz_timer->adjust(attotime::from_hz(clock() / 1024), 0, attotime::from_hz(clock() / 1024));
208   }
206209
207210   // state saving
208211   save_item(NAME(m_reg[MODE00]));
r31532r31533
228231   // 24 hour mode
229232   m_reg[MODE01][REGISTER_12_24_SELECT] = 1;
230233
231   set_current_time(machine());
234   if (clock() > 0)
235      set_current_time(machine());
232236}
233237
234238
trunk/src/mame/drivers/punchout.c
r31532r31533
1212TODO:
1313- add useless driver config to choose between pink and white color proms
1414- video raw params - pixel clock is derived from 20.16mhz xtal
15- spnchout rtc doesn't have a battery
1516- money bag placement might not be 100% correct in Arm Wrestling
1617
1718
r31532r31533
662663   MCFG_SCREEN_PALETTE("palette")
663664
664665   /* sound hardware */
665   MCFG_SPEAKER_STANDARD_MONO("mono")
666   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
666667
667668   MCFG_SOUND_ADD("nesapu", NES_APU, XTAL_21_4772MHz/12)
668669   MCFG_NES_APU_CPU("audiocpu")
669   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
670   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50)
670671
671672   MCFG_SOUND_ADD("vlm", VLM5030, XTAL_21_4772MHz/6)
672   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
673   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
673674MACHINE_CONFIG_END
674675
675676
r31532r31533
679680   MCFG_CPU_MODIFY("maincpu")
680681   MCFG_CPU_IO_MAP(spnchout_io_map)
681682
682   MCFG_DEVICE_ADD("rtc", RP5C01, XTAL_32_768kHz) // frequency guessed
683   MCFG_DEVICE_ADD("rtc", RP5C01, 0) // OSCIN -> Vcc
683684   MCFG_RP5H01_ADD("rp5h01")
684685   
685686   MCFG_MACHINE_RESET_OVERRIDE(punchout_state, spnchout)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team