Branch targets are relative to next instr.

This commit is contained in:
Unknown W. Brackets 2013-08-12 01:52:54 -07:00
parent 7ba54b5dc0
commit 92482dfcb3

View File

@ -117,7 +117,7 @@ namespace MIPSCodeUtils
}
if (sure && takeBranch)
return addr + ((signed short)(op&0xFFFF)<<2);
return addr + 4 + ((signed short)(op&0xFFFF)<<2);
else if (sure && !takeBranch)
return addr + 8;
else