Rev 6971 | Rev 9017 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6971 | Rev 7513 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2010-2017. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2010-2018. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;; netstat.asm - Network Status Tool for KolibriOS ;; |
6 | ;; netstat.asm - Network Status Tool for KolibriOS ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; Written by hidnplayr@kolibrios.org ;; |
8 | ;; Written by hidnplayr@kolibrios.org ;; |
Line 310... | Line 310... | ||
310 | 310 | ||
Line 311... | Line 311... | ||
311 | pop ecx |
311 | pop ecx |
312 | 312 | ||
313 | push [time] |
313 | push [time] |
314 | pop [delta_time] |
314 | pop [delta_time] |
315 | mcall 26, 9 |
315 | mcall 26, 9 ; TODO: use 26, 10 instead |
316 | mov [time], eax |
316 | mov [time], eax |
317 | sub eax, [delta_time] |
317 | sub eax, [delta_time] |
318 | jnz @f |
318 | jnz @f |
- | 319 | inc eax ; Zero time units? Lets make it at least one. |
|
- | 320 | @@: |
|
319 | inc eax ; Zero time units? Lets make it at least one. |
321 | lea eax, [eax + 4*eax] |
Line 320... | Line 322... | ||
320 | @@: |
322 | shl eax, 1 |
321 | mov [delta_time], eax |
323 | mov [delta_time], eax |
322 | 324 |