summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <>2001-04-16 16:22:22 +0000
committerPixel <>2001-04-16 16:22:22 +0000
commit5e99304900cc743236a3420d5463a97d84a8c0ee (patch)
tree14ef541b7c23912e86103f85355008a4cf9dfff3 /lib
parentb57a1af1c920bf374a75e040a8c938e237e84512 (diff)
Sauts relatifs
Diffstat (limited to 'lib')
-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;