summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2024-12-22 22:37:37 +0100
committer Vas Crabb <vas@vastheman.com>2024-12-24 22:36:22 +1100
commit4e998fda386fbaa737d4f90942ff35deef54ef97 (patch)
treebdbb640392d5c5a5305223c7bc334071015ccc63
parentded96a0f4e4b819681154db2de3dda6959a54a4d (diff)
yakyuken: correct ay and irq frequency
-rw-r--r--src/mame/omori/yakyuken.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mame/omori/yakyuken.cpp b/src/mame/omori/yakyuken.cpp
index a252163c8cf..d26c645159a 100644
--- a/src/mame/omori/yakyuken.cpp
+++ b/src/mame/omori/yakyuken.cpp
@@ -32,8 +32,6 @@ TODO:
- game sometimes leaves gaps when the lady is undressing
- colors aren't 100% correct (see i.e. the stripes in the curtains), reference video:
https://www.youtube.com/watch?v=zTOFIhuwR2w
-- verify sound pitch (unfortunately, no pcb sound in above video)
-- verify irq frequency, though it looks similar to the pcb video
*/
@@ -276,9 +274,7 @@ void yakyuken_state::yakyuken(machine_config &config)
Z80(config, m_maincpu, 18.432_MHz_XTAL / 3 / 2); // 3.072 MHz
m_maincpu->set_addrmap(AS_PROGRAM, &yakyuken_state::main_program_map);
m_maincpu->set_addrmap(AS_IO, &yakyuken_state::main_io_map);
-
- attotime irq_period = attotime::from_ticks(0x2000, 18.432_MHz_XTAL / 3);
- m_maincpu->set_periodic_int(FUNC(yakyuken_state::irq0_line_hold), irq_period);
+ m_maincpu->set_periodic_int(FUNC(yakyuken_state::irq0_line_hold), attotime::from_hz(4*60));
Z80(config, m_audiocpu, 18.432_MHz_XTAL / 3 / 4); // 1.536 MHz
m_audiocpu->set_addrmap(AS_PROGRAM, &yakyuken_state::sound_program_map);
@@ -304,7 +300,8 @@ void yakyuken_state::yakyuken(machine_config &config)
GENERIC_LATCH_8(config, "soundlatch");
- AY8910(config, m_ay, 18.432_MHz_XTAL / 3 / 16).add_route(ALL_OUTPUTS, "mono", 0.35);
+ AY8910(config, m_ay, 18.432_MHz_XTAL / 3 / 4); // 1.536 MHz
+ m_ay->add_route(ALL_OUTPUTS, "mono", 0.35);
}