CPU frequency bug fix

git-svn-id: svn://kolibrios.org@240 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Iliya Mihailov (Ghost) 2006-12-19 22:23:52 +00:00
parent 0575dbf098
commit c30932c83e
1 changed files with 26 additions and 15 deletions

View File

@ -36,22 +36,33 @@ mmx_en: int 0x40
mov eax, 18 mov eax, 18
mov ebx, 5 mov ebx, 5
int 0x40 int 0x40
push eax
fild dword[esp] xor edx, edx
push 1000;000 mov ebx, 1000000
fidiv dword[esp] div ebx
fidiv dword[esp] mov ecx, eax
fstp dword[esp] call digit_len
mov esi, esp mov eax, 47
call ftoa mov edx, 160 * 65536 + 295
mov ebx, 160 * 65536 + 295 xor esi, esi
mov edx, Data_String
mov eax, 4
mov esi, 7
xor ecx, ecx
int 0x40 int 0x40
pop eax
pop eax ; push eax ; Âåðíóòü êîä ïîñëå èñïðàâëåíèÿ ftoa
; fild dword[esp]
; push 1000;000
; fidiv dword[esp]
; fidiv dword[esp]
; fstp dword[esp]
; mov esi, esp
; call ftoa
; mov ebx, 160 * 65536 + 295
; mov edx, Data_String
; mov eax, 4
; mov esi, 7
; xor ecx, ecx
; int 0x40
; pop eax
; pop eax
; Семейство и модель процессора ; Семейство и модель процессора
mov eax, 47 mov eax, 47