From ef1b244239129b765431c1eee26da9154a87ec4e Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 17 Jul 2024 03:11:05 +0200 Subject: [PATCH] exit works --- source/compile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/compile.c b/source/compile.c index 78f81dc..ee05bc3 100644 --- a/source/compile.c +++ b/source/compile.c @@ -117,7 +117,10 @@ void _append_instructions(const unsigned argc, ...) { extern void append_exit(int code) { if (system_type == UNIX) { - append_instructions(MOV, R0, 60, MOV, R7, code, SYSCALL); + append_instructions(MOV, D32, REG, R0, IMM, 60, + MOV, D32, REG, R7, IMM, code, + SYSCALL + ); } }