From 1d3ff8524aee09cdfa8fa5dda55b8ad294677141 Mon Sep 17 00:00:00 2001 From: saxxonpike Date: Fri, 7 Dec 2012 21:02:02 +0000 Subject: [PATCH] commodore64: slight tweak --- BizHawk.Emulation/Computers/Commodore64/MOS/Port.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation/Computers/Commodore64/MOS/Port.cs b/BizHawk.Emulation/Computers/Commodore64/MOS/Port.cs index 4b26076e20..1e479913ea 100644 --- a/BizHawk.Emulation/Computers/Commodore64/MOS/Port.cs +++ b/BizHawk.Emulation/Computers/Commodore64/MOS/Port.cs @@ -10,7 +10,7 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS static public byte CPUWrite(byte latch, byte val, byte dir) { byte result; - result = (byte)(latch & (byte)(dir ^ 0xFF)); + result = (byte)(latch & (dir ^ 0xFF)); result |= (byte)(val & dir); return result; } @@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS { byte result; result = (byte)(latch & dir); - result |= (byte)(val & (byte)(dir ^ 0xFF)); + result |= (byte)(val & (dir ^ 0xFF)); return result; }