aboutsummaryrefslogtreecommitdiffstats
path: root/asm/jo_r_lowbat.asm
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-17 19:35:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-17 19:35:12 +0200
commit96caf953fb9d851b2f949fcd52dd7194ee6b1bb2 (patch)
tree79e491bab9e767be9fb738da0df1abc0ee0372d1 /asm/jo_r_lowbat.asm
parentin progress (diff)
downloadlowbat-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.asm22
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