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 | |
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')
-rw-r--r-- | asm/jo_c_args.asm | 8 | ||||
-rw-r--r-- | asm/jo_f_percent.asm | 8 | ||||
-rw-r--r-- | asm/jo_f_status.asm | 8 | ||||
-rw-r--r-- | asm/jo_r_cpyhead.asm | 8 | ||||
-rw-r--r-- | asm/jo_r_loop.asm | 8 | ||||
-rw-r--r-- | asm/jo_r_lowbat.asm | 18 |
6 files changed, 31 insertions, 27 deletions
diff --git a/asm/jo_c_args.asm b/asm/jo_c_args.asm index bb24057..67a83c8 100644 --- a/asm/jo_c_args.asm +++ b/asm/jo_c_args.asm @@ -1,9 +1,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; File : jo_c_args.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : Check args | ;; +;; File : jo_c_args.asm /_________/ ;; +;; Author : Joe | ;; +;; Date : 04/2020 | ;; +;; Info : Check args | ;; ;; / | ;; ;; \ / ;; ;; \_____/ ;; diff --git a/asm/jo_f_percent.asm b/asm/jo_f_percent.asm index 6ce918b..6a41c2f 100644 --- a/asm/jo_f_percent.asm +++ b/asm/jo_f_percent.asm @@ -1,9 +1,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; File : jo_f_percent.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : Gets batt remaining capacity | ;; +;; File : jo_f_percent.asm /_________/ ;; +;; Author : Joe | ;; +;; Date : 04/2020 | ;; +;; Info : Gets batt remaining capacity | ;; ;; / | ;; ;; \ / ;; ;; \_____/ ;; diff --git a/asm/jo_f_status.asm b/asm/jo_f_status.asm index 5abaf24..0c1c39f 100644 --- a/asm/jo_f_status.asm +++ b/asm/jo_f_status.asm @@ -1,9 +1,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; File : jo_f_status.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : Gets batt status | ;; +;; File : jo_f_status.asm /_________/ ;; +;; Author : Joe | ;; +;; Date : 04/2020 | ;; +;; Info : Gets batt status | ;; ;; / | ;; ;; \ / ;; ;; \_____/ ;; diff --git a/asm/jo_r_cpyhead.asm b/asm/jo_r_cpyhead.asm index 35cdcb2..4b51542 100644 --- a/asm/jo_r_cpyhead.asm +++ b/asm/jo_r_cpyhead.asm @@ -1,9 +1,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; File : jo_r_cpyhead.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : Formats and returns notification head title | ;; +;; File : jo_r_cpyhead.asm /_________/ ;; +;; Author : Joe | ;; +;; Date : 04/2020 | ;; +;; Info : Formats and returns notification head title | ;; ;; / | ;; ;; \ / ;; ;; \_____/ ;; diff --git a/asm/jo_r_loop.asm b/asm/jo_r_loop.asm index dccb46c..987f68f 100644 --- a/asm/jo_r_loop.asm +++ b/asm/jo_r_loop.asm @@ -1,9 +1,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; File : jo_r_loop.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : The main loop | ;; +;; File : jo_r_loop.asm /_________/ ;; +;; Author : Joe | ;; +;; Date : 04/2020 | ;; +;; Info : The main loop | ;; ;; / | ;; ;; \ / ;; ;; \_____/ ;; 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 |