diff options
Diffstat (limited to 'asm/jo_r_lowbat.asm')
-rw-r--r-- | asm/jo_r_lowbat.asm | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/asm/jo_r_lowbat.asm b/asm/jo_r_lowbat.asm index 53d56fa..4bc6126 100644 --- a/asm/jo_r_lowbat.asm +++ b/asm/jo_r_lowbat.asm @@ -1,9 +1,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; File : jo_r_lowbat.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : The main program | ;; +;; File : jo_r_lowbat.asm /_________/ ;; +;; Author : Joe | ;; +;; Date : 04/2020 | ;; +;; Info : The main program | ;; ;; / | ;; ;; \ / ;; ;; \_____/ ;; @@ -20,10 +20,14 @@ section .text extern jo_c_args extern jo_r_loop - global jo_r_lowbat + global main -jo_r_lowbat: +main: call jo_c_args mov rdi, rax call jo_r_loop ; jo_r_loop(speak: 0-1, *argv[]) - retq + + xor rax, rax + xor rdi, rdi + mov rax, 0x1 + syscall |