gp9001: fix regression with vdpcount_r

This commit is contained in:
hap 2025-01-16 21:31:37 +01:00
parent cf04431cb9
commit d1cbfd7909
2 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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]);