Browse Source

Small fix

Yann Weber 5 years ago
parent
commit
3c459352c6
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      wtfstopw.asm

+ 4
- 4
wtfstopw.asm View File

74
 	;	tv_sleep_us dq 500000000
74
 	;	tv_sleep_us dq 500000000
75
 
75
 
76
 
76
 
77
-	faultmsg: db "fault", 0xA
77
+	faultmsg: db "Fault !", 0xA
78
 	faultmsglen: equ $ - faultmsg
78
 	faultmsglen: equ $ - faultmsg
79
 
79
 
80
 	startmsg: db "Press Enter or ctrl+d to exit and ctrl+c for new lap."
80
 	startmsg: db "Press Enter or ctrl+d to exit and ctrl+c for new lap."
118
 ; preparing SIGINT catch
118
 ; preparing SIGINT catch
119
 mov rax, proc_lap_handler
119
 mov rax, proc_lap_handler
120
 mov qword [sigaction.sa_handler], rax
120
 mov qword [sigaction.sa_handler], rax
121
-mov eax, 0x10000000 ; SA_RESTART
122
-or eax, 0x04000000 ; SA_RESTORER
121
+mov eax, 0x14000000 ; SA_RESTART | SA_RESTORER
123
 mov dword [sigaction.sa_flags], eax
122
 mov dword [sigaction.sa_flags], eax
124
 mov rax, sig_restorer
123
 mov rax, sig_restorer
125
 mov qword [sigaction.sa_restorer], rax
124
 mov qword [sigaction.sa_restorer], rax
204
 	jmp exit
203
 	jmp exit
205
 
204
 
206
 ;
205
 ;
207
-; Print current time on FD r10 and put r13b as leading char
206
+; Print current time on FD and add a leading char CHR
207
+; push FD & push CHR to set arguments
208
 ;
208
 ;
209
 proc_print_time:
209
 proc_print_time:
210
 	; push ret addr before arguments
210
 	; push ret addr before arguments

Loading…
Cancel
Save