AR: Fix Memory Copy Without Pointer Support

Fix a bug when using AR codes with "Memory Copy Without Pointer Support"
code type which would write more data than it should.
This commit is contained in:
FenrisulfrX 2014-12-21 16:45:50 -02:00
parent 9b2909357b
commit 46e74782a7
1 changed files with 2 additions and 2 deletions

View File

@ -597,8 +597,8 @@ static bool ZeroCode_MemoryCopy(const u32 val_last, const ARAddr& addr, const u3
LogInfo("--------"); LogInfo("--------");
for (int i=0; i < num_bytes; ++i) for (int i=0; i < num_bytes; ++i)
{ {
Memory::Write_U32(Memory::Read_U32(addr_src + i), addr_dest + i); Memory::Write_U8(Memory::Read_U8(addr_src + i), addr_dest + i);
LogInfo("Wrote %08x to address %08x", Memory::Read_U32(addr_src + i), addr_dest + i); LogInfo("Wrote %08x to address %08x", Memory::Read_U8(addr_src + i), addr_dest + i);
} }
LogInfo("--------"); LogInfo("--------");
return true; return true;