From 3360f1976c5808805755c2989079d120d4961542 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Tue, 7 Oct 2025 17:03:59 -0400 Subject: [PATCH] Proper program exit --- helloworld.asm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helloworld.asm b/helloworld.asm index d43b234..05f35b2 100644 --- a/helloworld.asm +++ b/helloworld.asm @@ -15,3 +15,6 @@ _start: mov ebx, 1 ; write to the STDOUT file mov eax, 4 ; invoke SYS_WRITE (kernel opcode 4) int 80h + mov ebx, 0 ; return 0 + mov eax, 1 ; SYS_EXIT + int 80h