aboutsummaryrefslogtreecommitdiffstats
path: root/asm/r_lowbat.asm
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-27 01:02:18 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-27 01:02:18 +0200
commitea0eca4f717d7f4408273613a566f3550d27085b (patch)
treeb1c1fa062823bb36bbd8bb9dab6437c83c229eec /asm/r_lowbat.asm
parentMakefile change (diff)
downloadlowbat-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 '')
-rw-r--r--asm/r_lowbat.asm33
1 files changed, 33 insertions, 0 deletions
diff --git a/asm/r_lowbat.asm b/asm/r_lowbat.asm
new file mode 100644
index 0000000..f721867
--- /dev/null
+++ b/asm/r_lowbat.asm
@@ -0,0 +1,33 @@
+/* ************************************************************************************ */
+/* */
+/* File : r_lowbat.asm /_________/ */
+/* Author : Joe | */
+/* Date : 04/2020 | */
+/* Info : The main program | */
+/* / | */
+/* \ / */
+/* \_____/ */
+/* */
+/* ************************************************************************************ */
+
+;; Files prefixes
+;; --------------
+;; f: fetch
+;; n: notify
+;; r: run
+;; c: check
+
+section .text
+ extern jo_c_args
+ extern jo_r_loop
+ global main
+
+main:
+ call jo_c_args
+ mov rdi, rax
+ call jo_r_loop ; jo_r_loop(speak: 0-1, *argv[])
+
+ xor rax, rax
+ xor rdi, rdi
+ mov rax, 0x1
+ syscall