Reversing some faulty bit-shifting to fix 4 byte poking.

This commit is contained in:
pjgat09 2013-05-06 23:33:13 +00:00
parent a5d7fdd870
commit 371dcc8f40
1 changed files with 6 additions and 6 deletions

View File

@ -449,17 +449,17 @@ namespace BizHawk.MultiClient
{
if (BigEndian)
{
Domain.PokeByte(Address + 0, (byte)(Value << 24));
Domain.PokeByte(Address + 1, (byte)(Value << 16));
Domain.PokeByte(Address + 2, (byte)(Value << 8));
Domain.PokeByte(Address + 0, (byte)(Value >> 24));
Domain.PokeByte(Address + 1, (byte)(Value >> 16));
Domain.PokeByte(Address + 2, (byte)(Value >> 8));
Domain.PokeByte(Address + 3, (byte)(Value));
}
else
{
Domain.PokeByte(Address + 0, (byte)(Value));
Domain.PokeByte(Address + 1, (byte)(Value << 8));
Domain.PokeByte(Address + 2, (byte)(Value << 16));
Domain.PokeByte(Address + 3, (byte)(Value << 24));
Domain.PokeByte(Address + 1, (byte)(Value >> 8));
Domain.PokeByte(Address + 2, (byte)(Value >> 16));
Domain.PokeByte(Address + 3, (byte)(Value >> 24));
}
}