diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-19 21:22:14 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-19 21:22:14 +0200 |
commit | 30114ac62a2411e0a0722e33ec64610179509d15 (patch) | |
tree | cf8b6f7c7a3255a14025c4fada2aa6321cccf665 /asm/jo_r_lowbat.asm | |
parent | Bug fix (diff) | |
download | lowbat-bsd-30114ac62a2411e0a0722e33ec64610179509d15.tar.gz lowbat-bsd-30114ac62a2411e0a0722e33ec64610179509d15.tar.bz2 lowbat-bsd-30114ac62a2411e0a0722e33ec64610179509d15.tar.xz lowbat-bsd-30114ac62a2411e0a0722e33ec64610179509d15.tar.zst lowbat-bsd-30114ac62a2411e0a0722e33ec64610179509d15.zip |
Removed C main, new main is now in asm
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 |