From 5e99304900cc743236a3420d5463a97d84a8c0ee Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Mon, 16 Apr 2001 16:22:22 +0000 Subject: Sauts relatifs --- lib/simulator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/simulator.c') 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; -- cgit v1.2.3