From d1cbfd7909c95cb8e3edfd0132ee113d11f13c99 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 16 Jan 2025 21:31:37 +0100 Subject: gp9001: fix regression with vdpcount_r --- src/mame/toaplan/gp9001.cpp | 10 +++++----- src/mame/toaplan/raizing_batrider.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mame/toaplan/gp9001.cpp b/src/mame/toaplan/gp9001.cpp index 32d49d7cb68..5062ea61639 100644 --- a/src/mame/toaplan/gp9001.cpp +++ b/src/mame/toaplan/gp9001.cpp @@ -389,22 +389,22 @@ u16 gp9001vdp_device::vdpcount_r() int vpos = screen().vpos(); - u16 video_status = 0xff00; // Set signals inactive + u16 video_status = 0xff00; // Set signals inactive vpos = (vpos + 15) % 262; - if (hsync_r()) + if (!hsync_r()) video_status &= ~0x8000; - if (vsync_r()) + if (!vsync_r()) video_status &= ~0x4000; - if (fblank_r()) + if (!fblank_r()) video_status &= ~0x0100; if (vpos < 256) video_status |= (vpos & 0xff); else video_status |= 0xff; -// logerror("VC: vpos=%04x hpos=%04x VBL=%04x\n",vpos,hpos,m_screen->vblank()); + //logerror("VC: vpos=%04x hpos=%04x VBL=%04x\n",vpos,hpos,m_screen->vblank()); return video_status; } diff --git a/src/mame/toaplan/raizing_batrider.cpp b/src/mame/toaplan/raizing_batrider.cpp index e99cfc7f44d..7a6db395071 100644 --- a/src/mame/toaplan/raizing_batrider.cpp +++ b/src/mame/toaplan/raizing_batrider.cpp @@ -813,7 +813,7 @@ void batrider_state::batrider(machine_config &config) // sound hardware SPEAKER(config, "mono").front_center(); - // these two latches are always written together, via a single move.l instruction + // first two latches are always written together, via a single move.l instruction GENERIC_LATCH_8(config, m_soundlatch[0]); GENERIC_LATCH_8(config, m_soundlatch[1]); GENERIC_LATCH_8(config, m_soundlatch[2]); @@ -877,7 +877,7 @@ void bbakraid_state::bbakraid(machine_config &config) // sound hardware SPEAKER(config, "mono").front_center(); - // these two latches are always written together, via a single move.l instruction + // first two latches are always written together, via a single move.l instruction GENERIC_LATCH_8(config, m_soundlatch[0]); GENERIC_LATCH_8(config, m_soundlatch[1]); GENERIC_LATCH_8(config, m_soundlatch[2]); -- cgit v1.2.3