1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-02-05 07:34:41 +00:00

C64: [VIC2] fix yraster reset condition

Fixes Baby Blues+2 demo

I wonder why was it done like that - maybe sprites 0-2
on the first line will break now
This commit is contained in:
Gyorgy Szombathelyi
2020-03-17 18:33:56 +01:00
parent 7e773b1a1e
commit 491e71d63e

View File

@@ -42,7 +42,6 @@ architecture rtl of video_vicii_656x is
-- State machine
signal lastLineFlag : boolean; -- True for on last line of the frame.
signal beyondFrameFlag : boolean; -- Y>frame lines
signal vicCycle : vicCycles := cycleRefresh1;
signal sprite : unsigned(2 downto 0) := "000";
signal shiftChars : boolean;
@@ -662,14 +661,12 @@ rasterCounters: process(clk)
if phi = '1'
and enaData = '1'
and baSync = '0' then
beyondFrameFlag <= false;
if (vicCycle = cycleSpriteB)
and (sprite = 2) then
rasterY <= rasterY + 1;
beyondFrameFlag <= lastLineFlag;
end if;
if beyondFrameFlag then
rasterY <= (others => '0');
if lastLineFlag then
rasterY <= (others => '0');
end if;
end if;
end if;
end if;