aboutsummaryrefslogtreecommitdiffstats
path: root/asm/r_lowbat.asm
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2021-02-10 17:39:59 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2021-02-10 17:39:59 +0100
commita0983938dd66c3ff67bc87279ebe05f14bc692f2 (patch)
tree7560e44b2a71214dbe18b2bdf46d6d24f3afd6e3 /asm/r_lowbat.asm
parentRewriting (diff)
downloadlowbat-bsd-a0983938dd66c3ff67bc87279ebe05f14bc692f2.tar.gz
lowbat-bsd-a0983938dd66c3ff67bc87279ebe05f14bc692f2.tar.bz2
lowbat-bsd-a0983938dd66c3ff67bc87279ebe05f14bc692f2.tar.xz
lowbat-bsd-a0983938dd66c3ff67bc87279ebe05f14bc692f2.tar.zst
lowbat-bsd-a0983938dd66c3ff67bc87279ebe05f14bc692f2.zip
Translating, added rc script
Diffstat (limited to '')
-rw-r--r--asm/r_lowbat.asm27
1 files changed, 10 insertions, 17 deletions
diff --git a/asm/r_lowbat.asm b/asm/r_lowbat.asm
index 217efc3..a1da30b 100644
--- a/asm/r_lowbat.asm
+++ b/asm/r_lowbat.asm
@@ -10,24 +10,17 @@
/* */
/****************************************************************************************/
-;; Files prefixes
-;; --------------
-;; f: fetch
-;; n: notify
-;; r: run
-;; c: check
-
-section .text
- extern jo_c_args
- extern jo_r_loop
- global main
+.text
+.extern c_args
+.extern r_loop
+.globl main
main:
- call jo_c_args
- mov rdi, rax
- call jo_r_loop ; jo_r_loop(speak: 0-1, *argv[])
+ callq c_args
+ movq %rax, %rdi
+ callq r_loop /* jo_r_loop(speak: 0-1, *argv[]) */
- xor rax, rax
- xor rdi, rdi
- mov rax, 0x1
+ xorq %rax, %rax
+ xorq %rdi, %rdi
+ mov $0x1, %rax
syscall