mirror of
https://github.com/holub/mame
synced 2025-06-24 13:26:36 +03:00
kungfur: probably mono sound (nw)
This commit is contained in:
parent
5927ad1a1d
commit
ea575a05b5
@ -432,7 +432,7 @@ READ8_MEMBER(cgang_state::ppi5_c_r)
|
|||||||
// PC5-PC7: SW1
|
// PC5-PC7: SW1
|
||||||
data |= m_dipsw[0]->read() << 5;
|
data |= m_dipsw[0]->read() << 5;
|
||||||
|
|
||||||
return data | 0x18;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// copyright-holders:hap, Angelo Salese, Roberto Fresca
|
// copyright-holders:hap, Angelo Salese, Roberto Fresca
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
||||||
|
功夫老師
|
||||||
KUNG-FU ROUSHI
|
KUNG-FU ROUSHI
|
||||||
(c)1987 NAMCO
|
(c)1987 NAMCO
|
||||||
|
|
||||||
@ -299,9 +300,9 @@ void kungfur_state::machine_reset()
|
|||||||
void kungfur_state::kungfur(machine_config &config)
|
void kungfur_state::kungfur(machine_config &config)
|
||||||
{
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
M6809(config, m_maincpu, 8000000/2); // 4MHz?
|
M6809(config, m_maincpu, 8000000/2); // 4MHz?
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &kungfur_state::kungfur_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &kungfur_state::kungfur_map);
|
||||||
m_maincpu->set_periodic_int(FUNC(kungfur_state::kungfur_irq), attotime::from_hz(975)); // close approximation
|
m_maincpu->set_periodic_int(FUNC(kungfur_state::kungfur_irq), attotime::from_hz(8000000/2 / 0x1000));
|
||||||
|
|
||||||
i8255_device &ppi0(I8255A(config, "ppi8255_0"));
|
i8255_device &ppi0(I8255A(config, "ppi8255_0"));
|
||||||
// $4008 - always $83 (PPI mode 0, ports B & lower C as input)
|
// $4008 - always $83 (PPI mode 0, ports B & lower C as input)
|
||||||
@ -319,17 +320,17 @@ void kungfur_state::kungfur(machine_config &config)
|
|||||||
/* no video! */
|
/* no video! */
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "mono").front_center(); // 2 speakers, but likely mono sound mix
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
|
||||||
MSM5205(config, m_adpcm1, XTAL(384'000)); // clock verified with recording
|
MSM5205(config, m_adpcm1, XTAL(384'000)); // clock verified with recording
|
||||||
m_adpcm1->vck_legacy_callback().set(FUNC(kungfur_state::kfr_adpcm1_int));
|
m_adpcm1->vck_legacy_callback().set(FUNC(kungfur_state::kfr_adpcm1_int));
|
||||||
m_adpcm1->set_prescaler_selector(msm5205_device::S48_4B);
|
m_adpcm1->set_prescaler_selector(msm5205_device::S48_4B);
|
||||||
m_adpcm1->add_route(ALL_OUTPUTS, "lspeaker", 1.0);
|
m_adpcm1->add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
|
|
||||||
MSM5205(config, m_adpcm2, XTAL(384'000)); // clock verified with recording
|
MSM5205(config, m_adpcm2, XTAL(384'000)); // clock verified with recording
|
||||||
m_adpcm2->vck_legacy_callback().set(FUNC(kungfur_state::kfr_adpcm2_int));
|
m_adpcm2->vck_legacy_callback().set(FUNC(kungfur_state::kfr_adpcm2_int));
|
||||||
m_adpcm2->set_prescaler_selector(msm5205_device::S48_4B);
|
m_adpcm2->set_prescaler_selector(msm5205_device::S48_4B);
|
||||||
m_adpcm2->add_route(ALL_OUTPUTS, "rspeaker", 1.0);
|
m_adpcm2->add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user