Browse Source

Factorize timestr initialisation

Yann Weber 5 years ago
parent
commit
cfa1a72edb
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      wtfstopw.asm

+ 5
- 2
wtfstopw.asm View File

@@ -81,7 +81,10 @@ section .data
81 81
 
82 82
 	align 8
83 83
 	hours: times 8 db '0' ; allows storing max hours in 1<<64 secs
84
-	timestr: db ":00:00.0           ", 0
84
+	timestr: db ":00:00." 
85
+		times 8 db '0'
86
+		times 0xE db ' '
87
+		db 0
85 88
 	timestrend: align 8
86 89
 	timestrlen: equ timestrend - timestr
87 90
 	hourslen: equ timestr - hours ; hours len -> the max number of digits
@@ -94,7 +97,7 @@ section .data
94 97
 	laplen: dq 2
95 98
 
96 99
 	startmsg: db "Press Enter or ctrl+d to exit and ctrl+c for new lap."
97
-	db 0xA
100
+		db 0xA
98 101
 	startmsglen: equ $ - startmsg
99 102
 
100 103
 	usage_pre: db "Usage : "

Loading…
Cancel
Save