From a5d7fdd87058c717d0abed07ed9da75e4dde9e77 Mon Sep 17 00:00:00 2001 From: pjgat09 Date: Mon, 6 May 2013 23:17:44 +0000 Subject: [PATCH] Replace some buggy divisions with bit-shifting to fix s problem freezing an address in the ram watch --- BizHawk.MultiClient/tools/RamWatch.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.MultiClient/tools/RamWatch.cs b/BizHawk.MultiClient/tools/RamWatch.cs index 2d95863cc8..708436f45c 100644 --- a/BizHawk.MultiClient/tools/RamWatch.cs +++ b/BizHawk.MultiClient/tools/RamWatch.cs @@ -1248,9 +1248,9 @@ namespace BizHawk.MultiClient break; case Watch.TYPE.DWORD: { - byte HIWORDhigh = (byte)(Watches[indexes[i]].Value / 0x1000000); - byte HIWORDlow = (byte)(Watches[indexes[i]].Value / 0x10000); - byte LOWORDhigh = (byte)(Watches[indexes[i]].Value / 0x100); + byte HIWORDhigh = (byte)(Watches[indexes[i]].Value >> 24); + byte HIWORDlow = (byte)(Watches[indexes[i]].Value >> 16); + byte LOWORDhigh = (byte)(Watches[indexes[i]].Value >> 8); byte LOWORDlow = (byte)(Watches[indexes[i]].Value); int a1 = Watches[indexes[i]].Address; int a2 = Watches[indexes[i]].Address + 1;