From 8536c08f20e68046807b580f89ad429fbc898fa9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 18 Apr 2020 21:43:12 +0200 Subject: Removed some comments --- asm/jo_c_args.asm | 2 +- asm/jo_f_status.asm | 2 +- asm/jo_r_cpyhead.asm | 4 ++-- asm/jo_r_loop.asm | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/asm/jo_c_args.asm b/asm/jo_c_args.asm index 94a9413..bb24057 100644 --- a/asm/jo_c_args.asm +++ b/asm/jo_c_args.asm @@ -44,4 +44,4 @@ no_args: section .data reference: db "--say", 0x0 - reflen: equ $ - reference ; reference len + reflen: equ $ - reference diff --git a/asm/jo_f_status.asm b/asm/jo_f_status.asm index 723df0b..5abaf24 100644 --- a/asm/jo_f_status.asm +++ b/asm/jo_f_status.asm @@ -38,7 +38,7 @@ jo_f_status: mov rax, 0x6 syscall movsx rax, byte [rsi + 0x0] - sub rax, 0x30 ; 48 + sub rax, 0x30 retq err: diff --git a/asm/jo_r_cpyhead.asm b/asm/jo_r_cpyhead.asm index 421b17c..14b42da 100644 --- a/asm/jo_r_cpyhead.asm +++ b/asm/jo_r_cpyhead.asm @@ -19,7 +19,7 @@ jo_r_cpyhead: ; jo_r_cpyhead(percent: rdi) push rdi mov rdi, buff mov rsi, 0x0 - mov rdx, 0x11 ; 17 + mov rdx, 0x11 call memset ; memset 0 notification head lea rsi, [rel n_head] pop rdi @@ -37,4 +37,4 @@ section .data n_head: db "Low battery: %d%%", 0x0 section .bss - buff: resb 0x11 ; 17, notification head len + buff: resb 0x11 diff --git a/asm/jo_r_loop.asm b/asm/jo_r_loop.asm index 7aa68ac..dccb46c 100644 --- a/asm/jo_r_loop.asm +++ b/asm/jo_r_loop.asm @@ -38,7 +38,7 @@ bigloop: call jo_f_percent ; check the capacity cmp rax, 0xfe ; in case we couldn't read je err - cmp rax, 0xf ; 15% + cmp rax, 0xf jge sleepalot mov rdi, rax call jo_r_cpyhead @@ -56,13 +56,13 @@ speak: call jo_n_speak sleepabit: - mov rdi, 0x14 ; 20s + mov rdi, 0x14 call sleep ; sleep 20 seconds before next check/notification jmp bigloop sleepalot: - mov rdi, 0xf0 ; 240s - call sleep ; sleep 4m if it's fine + mov rdi, 0xf0 + call sleep ; sleep 240s (4m) if it's fine jmp bigloop return: -- cgit v1.2.3