exit works

This commit is contained in:
anon
2024-07-17 03:11:05 +02:00
parent bdc401e6ae
commit ef1b244239

View File

@ -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
);
}
}