Subversion Repositories Kolibri OS

Rev

Rev 6941 | Rev 7733 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6941 Rev 6942
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 6941 $
8
$Revision: 6942 $
9
 
9
 
10
 
10
 
Line 458... Line 458...
458
        mov     ecx, [ebx+0xF4]
458
        mov     ecx, [ebx+0xF4]
459
        cmp     ecx, edx
459
        cmp     ecx, edx
460
        jne     @B
460
        jne     @B
461
        popfd
461
        popfd
Line -... Line 462...
-
 
462
 
-
 
463
;96-bit arithmetic
-
 
464
;ebx - low dword
-
 
465
;esi - medium dword
-
 
466
;edx - high dword
462
 
467
 
463
        mul     [hpet_period]
468
        mul     [hpet_period]
464
        mov     ebx, eax
469
        mov     ebx, eax
Line 465... Line 470...
465
        mov     esi, edx
470
        mov     esi, edx
466
 
471
 
467
        mov     eax, ecx
472
        mov     eax, ecx
468
        mul     [hpet_period]
473
        mul     [hpet_period]
469
        add     eax, esi
474
        add     esi, eax
-
 
475
        adc     edx, 0
470
        mov     edx, eax
476
        mov     eax, ebx
471
        mov     eax, ebx
477
        mov     ebx, esi
-
 
478
        shrd    eax, ebx, 10
Line 472... Line 479...
472
        shrd    eax, edx, 10
479
        shrd    esi, edx, 10
473
        shr     edx, 10
480
        mov     edx, esi
474
 
481