From 5c2e0a23870db1864c04a6097975ffdccb43b99b Mon Sep 17 00:00:00 2001 From: IniKiwi Date: Wed, 6 Jul 2022 09:12:31 +0200 Subject: [PATCH] =?UTF-8?q?je=20crois=20que=20j'ai=20r=C3=A9solu=20un=20bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscall.c b/src/syscall.c index 45652e0..3266914 100644 --- a/src/syscall.c +++ b/src/syscall.c @@ -3,5 +3,5 @@ int syscall_handle(cpu_status_t* status, uint32_t origin){ printf("\e[32mpc: %8x syscall %8x\e[39m\n", origin, status->r[0]); - status->pc = status->pr; + status->pc = status->pr+4; } \ No newline at end of file