From 2f886aa5920985cb07cc0c8fb255d049c71759e8 Mon Sep 17 00:00:00 2001 From: MartinMihalev Date: Wed, 1 Oct 2025 19:13:37 +0300 Subject: [PATCH] Successful exit In order for the program to exit successfully exit EXIT_SUCCESS must precede error: label --- arg.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arg.asm b/arg.asm index cb64802..fe48801 100644 --- a/arg.asm +++ b/arg.asm @@ -34,11 +34,11 @@ close: syscall +exit EXIT_SUCCESS + error: exit EXIT_FAILURE -exit EXIT_SUCCESS - strlen: push rcx xor rcx, rcx