Commit f68a5470 authored by George Hotz's avatar George Hotz

fix branches

parent d64d43f3
...@@ -180,7 +180,7 @@ contract MIPS { ...@@ -180,7 +180,7 @@ contract MIPS {
} }
if (shouldBranch) { if (shouldBranch) {
val = pc + (SE(insn&0xFFFF, 16)<<2); val = pc + 4 + (SE(insn&0xFFFF, 16)<<2);
storeAddr = REG_PC; storeAddr = REG_PC;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment