|
@@ -74,7 +74,7 @@ section .data
|
74
|
74
|
; tv_sleep_us dq 500000000
|
75
|
75
|
|
76
|
76
|
|
77
|
|
- faultmsg: db "fault", 0xA
|
|
77
|
+ faultmsg: db "Fault !", 0xA
|
78
|
78
|
faultmsglen: equ $ - faultmsg
|
79
|
79
|
|
80
|
80
|
startmsg: db "Press Enter or ctrl+d to exit and ctrl+c for new lap."
|
|
@@ -118,8 +118,7 @@ jne fault
|
118
|
118
|
; preparing SIGINT catch
|
119
|
119
|
mov rax, proc_lap_handler
|
120
|
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
|
122
|
mov dword [sigaction.sa_flags], eax
|
124
|
123
|
mov rax, sig_restorer
|
125
|
124
|
mov qword [sigaction.sa_restorer], rax
|
|
@@ -204,7 +203,8 @@ newline_exit:
|
204
|
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
|
209
|
proc_print_time:
|
210
|
210
|
; push ret addr before arguments
|