Little oversight

This commit is contained in:
masterofpuppets152001 2013-04-26 07:59:10 +00:00
parent 670460df8c
commit 4d445244d7
2 changed files with 5 additions and 3 deletions

View File

@ -367,7 +367,7 @@ namespace BizHawk.MultiClient
if (String.IsNullOrWhiteSpace(ValueBox.Text))
c.value = 0;
else
c.value = (byte)((int.Parse(ValueBox.Text, NumberStyles.HexNumber) & 0xFF00) >> 8);
c.value = (byte)(int.Parse(ValueBox.Text, NumberStyles.HexNumber));
if (!String.IsNullOrWhiteSpace(CompareBox.Text))
{

View File

@ -305,12 +305,14 @@ namespace BizHawk.MultiClient
if (String.IsNullOrWhiteSpace(AddressBox.Text))
c.address = 0;
else
{
c.address = int.Parse(AddressBox.Text, NumberStyles.HexNumber);
c.address += 0x8000;
}
if (String.IsNullOrWhiteSpace(ValueBox.Text))
c.value = 0;
else
c.value = (byte)((int.Parse(ValueBox.Text, NumberStyles.HexNumber) & 0xFF00) >> 8);
c.value = (byte)(int.Parse(ValueBox.Text, NumberStyles.HexNumber));
c.compare = null;
for (int x = 0; x < Global.Emulator.MemoryDomains.Count; x++)