From a446f48412455e5aed6321d3c653df514e557d91 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi Date: Fri, 20 Sep 2019 21:53:34 +0200 Subject: [PATCH] [C16] Fix HSP scrolling in Alpharay --- cores/c16/ted.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/c16/ted.v b/cores/c16/ted.v index f6e9f32..b3e0139 100644 --- a/cores/c16/ted.v +++ b/cores/c16/ted.v @@ -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