Skip to content

Commit

Permalink
#2 Generate raster interrupt only once per line fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hagronnestad committed Apr 4, 2020
1 parent 108699b commit 3a55a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ComputerSystems/Commodore64/Vic/VicIi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void Cycle() {
// Every cycle draws 8 pixels to the screen

// Generate raster interrupt if the current line equals interrupt line
if (InterruptControlRegisterRasterInterruptEnabled && CurrentLine == _rasterLineToGenerateInterruptAt) {
if (CurrentLineCycle == 0 && InterruptControlRegisterRasterInterruptEnabled && CurrentLine == _rasterLineToGenerateInterruptAt) {
_interruptLatchRasterLine = true;
OnGenerateRasterLineInterrupt?.Invoke(this, null);
}
Expand Down

0 comments on commit 3a55a5f

Please sign in to comment.