azan

prayers time calculator written in nasm
git clone git://git.afify.dev/azan
Log | Files | Refs | README | LICENSE

commit fe04c733a140d9b0a84a404c53d51c87f926fcc2
parent ce379ec74e0348325b3a3149fa6207f398ea8da7
Author: afify <hassan@afify.dev>
Date:   Sun, 29 Nov 2020 17:56:54 +0300

[fix] -N option logic

Diffstat:
Mazan.s | 18+++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/azan.s b/azan.s @@ -383,14 +383,13 @@ print_12: subsd xmm14, xmm15 ;prayer timestamp - start_of_day SEC_TO_HM xmm14 cmp r8, 0xc - ja sub12h + jle print_exit + sub r8, 0xc + +print_exit: PRINT_HM EEXIT EXIT_SUCCESS -sub12h: - sub r8, 0xc - ret - print_all_u: PRINT_INT xmm3 ;fajr PRINT_INT xmm0 ;duhr @@ -440,22 +439,19 @@ print_all_12: mov [res_msg], byte 'A' subsd xmm4, xmm15 ;prayer timestamp - start_of_day SEC_TO_HM xmm4 - cmp r8, 0xc - call sub12h + sub r8, 0xc PRINT_HM mov [res_msg], byte 'M' subsd xmm5, xmm15 ;prayer timestamp - start_of_day SEC_TO_HM xmm5 - cmp r8, 0xc - call sub12h + sub r8, 0xc PRINT_HM mov [res_msg], byte 'I' subsd xmm7, xmm15 ;prayer timestamp - start_of_day SEC_TO_HM xmm7 - cmp r8, 0xc - call sub12h + sub r8, 0xc PRINT_HM EEXIT EXIT_SUCCESS