Skip to content

Commit

Permalink
yakyuken: correct ay and irq frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
happppp committed Dec 22, 2024
1 parent 1089c83 commit 7f5c6ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/mame/omori/yakyuken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ The riser board has a pair of HM4334 1K*4 static RAMs and a quad 2-input NAND ga
- 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
*/

Expand Down Expand Up @@ -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);
Expand All @@ -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);
}


Expand Down

1 comment on commit 7f5c6ce

@happppp
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cuavas could you cherry pick this commit?

Please sign in to comment.