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).
This commit is contained in:
YLFAndy
2023-10-30 07:17:13 -07:00
committed by GitHub
parent b6252a2ba0
commit 970dc01fa7

View File

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