diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 19:35:12 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 19:35:12 +0200 |
commit | 96caf953fb9d851b2f949fcd52dd7194ee6b1bb2 (patch) | |
tree | 79e491bab9e767be9fb738da0df1abc0ee0372d1 /asm/jo_r_lowbat.asm | |
parent | in progress (diff) | |
download | lowbat-bsd-96caf953fb9d851b2f949fcd52dd7194ee6b1bb2.tar.gz lowbat-bsd-96caf953fb9d851b2f949fcd52dd7194ee6b1bb2.tar.bz2 lowbat-bsd-96caf953fb9d851b2f949fcd52dd7194ee6b1bb2.tar.xz lowbat-bsd-96caf953fb9d851b2f949fcd52dd7194ee6b1bb2.tar.zst lowbat-bsd-96caf953fb9d851b2f949fcd52dd7194ee6b1bb2.zip |
On the way, solved segv
Diffstat (limited to '')
-rw-r--r-- | asm/jo_r_lowbat.asm | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/asm/jo_r_lowbat.asm b/asm/jo_r_lowbat.asm index 6fadc86..53d56fa 100644 --- a/asm/jo_r_lowbat.asm +++ b/asm/jo_r_lowbat.asm @@ -18,30 +18,12 @@ ;; c: check section .text - extern puts - ;; extern stoa extern jo_c_args extern jo_r_loop global jo_r_lowbat jo_r_lowbat: - ;; call stoa - push rdi + call jo_c_args mov rdi, rax - call puts - pop rdi + call jo_r_loop ; jo_r_loop(speak: 0-1, *argv[]) retq - -;; call jo_c_args -;; mov bl, byte [rax + 0x0] -;; cmp bl, 0x0 -;; jne joprint -;; call jo_r_loop ; jo_r_loop(speak: 0-1, *argv[]) -;; xor rax, rax -;; retq - -;; joprint: -;; push rdi -;; mov rdi, rax -;; call puts -;; pop rdi |