diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-27 01:02:18 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-27 01:02:18 +0200 |
commit | ea0eca4f717d7f4408273613a566f3550d27085b (patch) | |
tree | b1c1fa062823bb36bbd8bb9dab6437c83c229eec /asm/jo_r_cpyhead.asm | |
parent | Makefile change (diff) | |
download | lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.gz lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.bz2 lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.xz lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.zst lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.zip |
Rewrite started
Diffstat (limited to 'asm/jo_r_cpyhead.asm')
-rw-r--r-- | asm/jo_r_cpyhead.asm | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/asm/jo_r_cpyhead.asm b/asm/jo_r_cpyhead.asm deleted file mode 100644 index 4b51542..0000000 --- a/asm/jo_r_cpyhead.asm +++ /dev/null @@ -1,40 +0,0 @@ -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; ;; -;; File : jo_r_cpyhead.asm /_________/ ;; -;; Author : Joe | ;; -;; Date : 04/2020 | ;; -;; Info : Formats and returns notification head title | ;; -;; / | ;; -;; \ / ;; -;; \_____/ ;; -;; ;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -section .text - extern memset - extern sprintf - global jo_r_cpyhead - -jo_r_cpyhead: ; jo_r_cpyhead(percent: rdi) - push rdi - mov rdi, buff - mov rsi, 0x0 - mov rdx, 0x11 - call memset ; memset 0 notification head - lea rsi, [rel n_head] - pop rdi - mov rdx, rdi - mov rdi, rax - xor rax, rax - mov al, 0x1 - push rdi - call sprintf - pop rdi - mov rax, rdi - retq - -section .data - n_head: db "Low battery: %d%%", 0x0 - -section .bss - buff: resb 0x11 |