summaryrefslogtreecommitdiff
path: root/lib/simulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/simulator.c')
-rw-r--r--lib/simulator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/simulator.c b/lib/simulator.c
index 4cc5d6f..92286c1 100644
--- a/lib/simulator.c
+++ b/lib/simulator.c
@@ -278,8 +278,12 @@ void DecodeExec(Uint32 instruction, Uint32 entrypoint)
}
if (test1) {
Uint32 tmp;
-
+
+
tmp = LireInstruction();
+ if (Opcode(instruction) & 1) {
+ tmp += LireRegistrePC();
+ }
EcrireRegistrePC(tmp);
}
break;