Small fix
This commit is contained in:
parent
96a5a823e2
commit
3c459352c6
1 changed files with 4 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ section .data
|
||||||
; tv_sleep_us dq 500000000
|
; tv_sleep_us dq 500000000
|
||||||
|
|
||||||
|
|
||||||
faultmsg: db "fault", 0xA
|
faultmsg: db "Fault !", 0xA
|
||||||
faultmsglen: equ $ - faultmsg
|
faultmsglen: equ $ - faultmsg
|
||||||
|
|
||||||
startmsg: db "Press Enter or ctrl+d to exit and ctrl+c for new lap."
|
startmsg: db "Press Enter or ctrl+d to exit and ctrl+c for new lap."
|
||||||
|
|
@ -118,8 +118,7 @@ jne fault
|
||||||
; preparing SIGINT catch
|
; preparing SIGINT catch
|
||||||
mov rax, proc_lap_handler
|
mov rax, proc_lap_handler
|
||||||
mov qword [sigaction.sa_handler], rax
|
mov qword [sigaction.sa_handler], rax
|
||||||
mov eax, 0x10000000 ; SA_RESTART
|
mov eax, 0x14000000 ; SA_RESTART | SA_RESTORER
|
||||||
or eax, 0x04000000 ; SA_RESTORER
|
|
||||||
mov dword [sigaction.sa_flags], eax
|
mov dword [sigaction.sa_flags], eax
|
||||||
mov rax, sig_restorer
|
mov rax, sig_restorer
|
||||||
mov qword [sigaction.sa_restorer], rax
|
mov qword [sigaction.sa_restorer], rax
|
||||||
|
|
@ -204,7 +203,8 @@ newline_exit:
|
||||||
jmp exit
|
jmp exit
|
||||||
|
|
||||||
;
|
;
|
||||||
; Print current time on FD r10 and put r13b as leading char
|
; Print current time on FD and add a leading char CHR
|
||||||
|
; push FD & push CHR to set arguments
|
||||||
;
|
;
|
||||||
proc_print_time:
|
proc_print_time:
|
||||||
; push ret addr before arguments
|
; push ret addr before arguments
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue