aboutsummaryrefslogtreecommitdiffstats
path: root/asm/r_lowbat.asm
blob: 217efc3f428428d4dc61503e6f256448826b7616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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