Skip to content

Commit

Permalink
#2 Added brackets in UpdateRasterLineToGenerateInterruptAt
Browse files Browse the repository at this point in the history
  • Loading branch information
hagronnestad committed Apr 6, 2020
1 parent 466bad4 commit 045dcdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ComputerSystems/Commodore64/Vic/VicIi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ public byte this[Register index] {

private void UpdateRasterLineToGenerateInterruptAt() {
_rasterLineToGenerateInterruptAt = this[Register.REGISTER_0x12_RASTER_COUNTER];
if (this[Register.REGISTER_0x11_SCREEN_CONTROL_1].IsBitSet(BitFlag.BIT_7)) _rasterLineToGenerateInterruptAt += 255;
if (this[Register.REGISTER_0x11_SCREEN_CONTROL_1].IsBitSet(BitFlag.BIT_7)) {
_rasterLineToGenerateInterruptAt += 255;
}
}

public enum TvSystem {
Expand Down

0 comments on commit 045dcdc

Please sign in to comment.