2007-02-02 11:23:31 +01:00
|
|
|
|
;
|
|
|
|
|
; Ghost Monitor - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; Copyright (C) 2005, 2006, 2007 Mihailov Ilia (ghost.nsk@mail.ru)
|
|
|
|
|
; All Right Reserved
|
|
|
|
|
|
2006-11-02 15:18:23 +01:00
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
;
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov edx, lab_info_tab
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov ebx, 17 * 65536 + 285
|
2006-11-02 15:18:23 +01:00
|
|
|
|
call show_text
|
|
|
|
|
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov edx, Vendor
|
|
|
|
|
mov esi, 12
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov ebx, 160 * 65536 + 285
|
2006-11-02 15:18:23 +01:00
|
|
|
|
int 0x40
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MMX
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov ebx, 160 * 65536 + 305
|
2006-11-02 15:18:23 +01:00
|
|
|
|
mov esi, 3
|
|
|
|
|
mov edx, msg_yes
|
|
|
|
|
cmp byte[CPU_mmx], 1
|
|
|
|
|
je mmx_en
|
|
|
|
|
mov edx, msg_no
|
|
|
|
|
mmx_en: int 0x40
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov edx, [hwm_chip_name]
|
2007-05-16 17:17:00 +02:00
|
|
|
|
or ecx, 0x80000000
|
2007-02-02 11:23:31 +01:00
|
|
|
|
mov ebx, 160 * 65536 + 325
|
2006-11-02 15:18:23 +01:00
|
|
|
|
mov al, 4
|
|
|
|
|
int 0x40
|
2006-11-28 16:54:36 +01:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax, 18
|
|
|
|
|
mov ebx, 5
|
|
|
|
|
int 0x40
|
2006-12-19 23:23:52 +01:00
|
|
|
|
|
|
|
|
|
xor edx, edx
|
|
|
|
|
mov ebx, 1000000
|
|
|
|
|
div ebx
|
|
|
|
|
mov ecx, eax
|
|
|
|
|
call digit_len
|
|
|
|
|
mov eax, 47
|
|
|
|
|
mov edx, 160 * 65536 + 295
|
|
|
|
|
xor esi, esi
|
2006-11-28 16:54:36 +01:00
|
|
|
|
int 0x40
|
2013-06-05 07:47:25 +02:00
|
|
|
|
|
2006-12-19 23:23:52 +01:00
|
|
|
|
; push eax ; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 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
|
2013-06-05 07:47:25 +02:00
|
|
|
|
|
2006-11-02 15:18:23 +01:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax, 47
|
|
|
|
|
mov ebx, 0x10100
|
|
|
|
|
xor ecx, ecx
|
|
|
|
|
mov cl, [CPU_fam]
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov edx, 250 * 65536 + 285
|
2006-11-02 15:18:23 +01:00
|
|
|
|
xor esi, esi
|
|
|
|
|
int 0x40
|
|
|
|
|
mov cl, [CPU_mod]
|
|
|
|
|
add edx, 10 * 65536
|
|
|
|
|
int 0x40
|
2013-06-05 07:47:25 +02:00
|
|
|
|
|
2006-11-02 15:18:23 +01:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
call multiplier
|
|
|
|
|
test ecx, ecx
|
|
|
|
|
jz @f
|
|
|
|
|
movzx ecx, cl
|
|
|
|
|
push ecx
|
|
|
|
|
fild dword[esp]
|
|
|
|
|
push 10
|
|
|
|
|
fidiv dword[esp]
|
|
|
|
|
fstp dword[esp]
|
|
|
|
|
mov esi, esp
|
|
|
|
|
call ftoa
|
2007-02-02 11:23:31 +01:00
|
|
|
|
mov ebx, 160 * 65536 + 315
|
2006-11-02 15:18:23 +01:00
|
|
|
|
mov edx, Data_String
|
|
|
|
|
mov eax, 4
|
|
|
|
|
mov esi, eax
|
|
|
|
|
xor ecx, ecx
|
|
|
|
|
int 0x40
|
|
|
|
|
pop eax
|
|
|
|
|
pop eax
|
|
|
|
|
@@:
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
if (OS_version >= 0x0530)
|
|
|
|
|
mov eax, 18
|
|
|
|
|
mov ebx, 16
|
|
|
|
|
int 0x40
|
|
|
|
|
mov ecx, eax
|
|
|
|
|
call digit_len
|
|
|
|
|
mov eax, 47
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov edx, 160 * 65536 + 335
|
2006-11-02 15:18:23 +01:00
|
|
|
|
xor esi, esi
|
|
|
|
|
int 0x40
|
|
|
|
|
end if
|
2013-06-05 07:47:25 +02:00
|
|
|
|
|
2006-11-02 15:18:23 +01:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov eax, 4
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov ebx, 152 * 65536 + 285
|
2006-11-02 15:18:23 +01:00
|
|
|
|
mov edx, dub_p
|
|
|
|
|
mov esi, 1
|
2006-11-28 16:54:36 +01:00
|
|
|
|
mov ecx, 6 ; <- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-11-02 15:18:23 +01:00
|
|
|
|
nxt_dp: push ecx
|
|
|
|
|
mov ecx, 0x10000000
|
|
|
|
|
int 0x40
|
|
|
|
|
add ebx, 10
|
|
|
|
|
pop ecx
|
|
|
|
|
loop nxt_dp
|
2013-06-05 07:47:25 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 15:18:23 +01:00
|
|
|
|
jmp end_drow_tab
|
|
|
|
|
dub_p db ':'
|
|
|
|
|
|
2013-06-05 07:47:25 +02:00
|
|
|
|
if lang eq it
|
|
|
|
|
lab_info_tab mls \
|
|
|
|
|
'Vendor CPU',\
|
|
|
|
|
'Frequenza CPU (MHz)',\
|
|
|
|
|
'MMX tehnology',\
|
|
|
|
|
'Multiplier',\
|
|
|
|
|
'Monitoring chip',\
|
|
|
|
|
'Memoria libera (Kb)'
|
|
|
|
|
else
|
|
|
|
|
lab_info_tab mls \
|
|
|
|
|
'CPU Vendor',\
|
|
|
|
|
'CPU frequency (MHz)',\
|
|
|
|
|
'MMX tehnology',\
|
|
|
|
|
'Multiplier',\
|
|
|
|
|
'Monitoring chip',\
|
|
|
|
|
'Free memory (Kb)'
|
|
|
|
|
end if
|