Skip to content

Commit

Permalink
[fix] -N option logic
Browse files Browse the repository at this point in the history
  • Loading branch information
afify committed Nov 29, 2020
1 parent ce379ec commit fe04c73
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions azan.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit fe04c73

Please sign in to comment.