From 970dc01fa7161d5ed26be4ff9fbfc5f274e03475 Mon Sep 17 00:00:00 2001 From: YLFAndy <115659432+YLFAndy@users.noreply.github.com> Date: Mon, 30 Oct 2023 07:17:13 -0700 Subject: [PATCH] Update vdp.vhd - fix VDP counter reload on V30 (#105) VDP: Vcounter doesn't reload with NTSC/V30 (SoR2 hacks will fail to load stage). --- rtl/GEN/vdp.vhd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtl/GEN/vdp.vhd b/rtl/GEN/vdp.vhd index 3285a16..0ef9ffc 100644 --- a/rtl/GEN/vdp.vhd +++ b/rtl/GEN/vdp.vhd @@ -2379,7 +2379,8 @@ begin end if; if HV_HCNT = H_INT_POS then - if HV_VCNT = V_DISP_START + V_TOTAL_HEIGHT - 1 then --VDISP_START is negative + if HV_VCNT = V_DISP_START + V_TOTAL_HEIGHT - 1 and --VDISP_START is negative + (V30 = '0' or PAL = '1') then -- NTSC with V30 will not reload the VCounter --just after VSYNC HV_VCNT <= V_DISP_START; else