1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-02-06 16:14:42 +00:00

[C16] Fix HSP scrolling in Alpharay

This commit is contained in:
Gyorgy Szombathelyi
2019-09-20 21:53:34 +02:00
parent 9c444892ad
commit a446f48412

View File

@@ -741,6 +741,8 @@ always @(posedge clk)
begin
if(hpos_392 & videoline==EOS) // clear videocounter reload register at last line
videocounter_reload<=0;
else if(inc_videocounter && hcounter_next == 9'd432 && tick8) // if the videocounter running when it's reloaded, that affects the reload value (HSP in Alpharay)
videocounter_reload<=videocounter+1'd1;
else if(VertSubCount==6 && latch_charposition && enabledisplay) // Latch videocounter position at 6th line of a character row
videocounter_reload<=videocounter;
end