mirror of
https://github.com/mist-devel/mist-board.git
synced 2026-04-28 05:05:53 +00:00
[C16] Fix charpos reload latching (Alpharay bottom line)
This commit is contained in:
@@ -634,7 +634,7 @@ always @(posedge clk) // DMA and Charpos latch delay trick
|
||||
|
||||
always @(posedge clk)
|
||||
begin
|
||||
if(latch_charposition)
|
||||
if(hpos_392)
|
||||
begin
|
||||
if(VertSubCount==6)
|
||||
CharPosLatch<=1; // CharPosLatch signal activates in line 6 and signals that videocounter (DMA counter) has been latched. It is used in line 7 for character position latch.
|
||||
@@ -651,7 +651,7 @@ always @(posedge clk) // Character Position Reload register $FF1A/$FF1B
|
||||
CharPosReload[7:0]<=data_in;
|
||||
else if(hpos_392 & videoline==EOS) // clear character position reload at last line
|
||||
CharPosReload<=0;
|
||||
else if(CharPosLatch & latch_charposition & VertSubActive) // latch character position at 7th line of a character row if videocunter was latched in previous 6th row
|
||||
else if(CharPosLatch & latch_charposition & enabledisplay) // latch character position at 7th line of a character row if videocunter was latched in previous 6th row
|
||||
CharPosReload<=CharPosition;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user