aboutsummaryrefslogtreecommitdiffstats
path: root/asm/r_lowbat.asm
diff options
context:
space:
mode:
Diffstat (limited to 'asm/r_lowbat.asm')
-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