From 0aad7c75a764ffeeda826b3fcea5e58de15111f4 Mon Sep 17 00:00:00 2001 From: flama12333 <143599905+flama12333@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:06:44 -0500 Subject: misc/changyu.cpp: Add VBL NMI and hook up the OPLL for changyu2 (#12643) --- src/mame/misc/changyu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mame/misc/changyu.cpp b/src/mame/misc/changyu.cpp index 3a8117fda94..bfa86483213 100644 --- a/src/mame/misc/changyu.cpp +++ b/src/mame/misc/changyu.cpp @@ -156,6 +156,8 @@ void changyu_state::main2_map(address_map &map) main_map(map); map(0x2030, 0x2030).w(m_crtc, FUNC(mc6845_device::address_w)); map(0x2031, 0x2031).rw(m_crtc, FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w)); + map(0x2800, 0x2801).w("ymsnd", FUNC(ym2413_device::write)); + map(0x3000, 0x37ff).unmaprw(); map(0x6000, 0xffff).rom().region("boot_rom", 0x6000); @@ -246,6 +248,7 @@ void changyu_state::changyu(machine_config &config) m_crtc->set_screen("screen"); m_crtc->set_show_border_area(false); m_crtc->set_char_width(8); + m_crtc->out_vsync_callback().set_inputline(m_maincpu, INPUT_LINE_NMI); /* sound hardware */ SPEAKER(config, "mono").front_center(); -- cgit v1.2.3