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

Loading…
Cancel
Save