From 045dcdc5660367fee641fe587dba4513c980d82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hein=20Andre=20Gr=C3=B8nnestad?= Date: Mon, 6 Apr 2020 19:34:21 +0200 Subject: [PATCH] #2 Added brackets in UpdateRasterLineToGenerateInterruptAt --- ComputerSystems/Commodore64/Vic/VicIi.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ComputerSystems/Commodore64/Vic/VicIi.cs b/ComputerSystems/Commodore64/Vic/VicIi.cs index 7276a3a..276819e 100644 --- a/ComputerSystems/Commodore64/Vic/VicIi.cs +++ b/ComputerSystems/Commodore64/Vic/VicIi.cs @@ -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 {