Subversion Repositories Kolibri OS

Compare Revisions

Ignore whitespace Rev 449 → Rev 450

/programs/system/cpuid/trunk/CPUID.ASM
1,9 → 1,9
;******************************************************************************
; project name: CPUID *
; target platform: KolibriOS, x86 (IA-32), x86-64 achitectures *
; compiler: flat assembler 1.67.5 *
; version: 2.17 *
; last update: 3rd February 2007 1st 2nd 3rd 4th *
; compiler: flat assembler 1.67.21 *
; version: 2.18 *
; last update: 1st April 2007 1st 2nd 3rd 4th *
; maintained by: Sergey Kuzmin aka Wildwest *
; e-mail: kuzmin_serg@list.ru *
; site: http://coolthemes.narod.ru/files.html *
1572,11 → 1572,47
nop
jmp FREEZE ; maybe we should close application or just made some Warning and jump to still:
;----------------
still:
mov eax,10
int 0x40 ;
still:
 
; çàòåì ïåðåõîäèì â öèêë îæèäàíèÿ ñîáûòèé
event_wait:
 
;================_RAM_==============
Number 205,360,0,4,dword [ram_size_a],0xFFFFFF
 
mov eax, 18
mov ebx, 16
int 0x40
 
shr eax, 10
 
mov [ram_size_a], eax
 
mov eax, 18
mov ebx, 17
int 0x40
 
shr eax, 10
 
mov [ram_size_t], eax
 
Text 120,360,0x00000000,ram, ramlen-ram
 
Number 205,360,0,4,dword [ram_size_a],0x000000
 
Number 275,360,0,4,dword [ram_size_t],0x000000
Text 305,360,0x00000000,mb, mblen-mb
 
;==============================
 
mov ebx,50 ; æäåìñ 1 ñåê
mov eax,23 ; ôóíêöèÿ 23: îæèäàíèå ñîáûòèÿ
int 0x40
 
; mov eax,10
; int 0x40 ;
cmp eax,1 ;
je red ; red
je red ; redraw
cmp eax,2 ;
je key ; key
cmp eax,3 ;
1600,6 → 1636,7
 
jne noclose
 
jmp event_wait
vybor:
 
Number 315,90,0,4,dword [rating],0xFFFFFF ;
1894,31 → 1931,8
call newrating; !!!!
 
cont:
;================_RAM_==============
mov eax, 18
mov ebx, 16
int 0x40
 
shr eax, 10
 
mov [ram_size_a], eax
 
mov eax, 18
mov ebx, 17
int 0x40
 
shr eax, 10
 
mov [ram_size_t], eax
 
Text 120,360,0x00000000,ram, ramlen-ram
Number 205,360,0,4,dword [ram_size_a],0x000000
 
Number 275,360,0,4,dword [ram_size_t],0x000000
Text 305,360,0x00000000,mb, mblen-mb
 
;==============================
 
Text 20,70,0x00000000,tsum, tsumlen-tsum ;
Text 20,110,0x00000000,cpuname, cpunamelen-cpuname;
Text 260,270,0x00000000,typen, typenlen-typen;
/programs/system/cpuid/trunk/HISTORY.TXT
2,10 → 2,10
; project name: CPUID
; target platform: KolibriOS, x86 (IA-32), x86-64 achitectures
; compability: probably some functions would work in MenuetOS 32 and MenuetOS 64, may be even in Miraculix;
; CPUID works in MS Windows by means of emulator from Diamond (http://diamondz.land.ru)
; compiler: flat assembler 1.67.5
; version: 2.17
; last update: 3rd February 2007
; CPUID works in MS Windows by means of emulator KlbrInWin from Diamond (http://diamondz.land.ru)
; compiler: flat assembler 1.67.21
; version: 2.18
; last update: 1st April 2007
; maintained by: Sergey Kuzmin aka Wildwest
; e-mail: kuzmin_serg@list.ru
; site: http://coolthemes.narod.ru/files.html
37,11 → 37,12
; newest AMD/Intel codename detection
;******************************************************************************
;HISTORY:
;3.0: CPUID 03/02/2007 (not finished)
;3.0: CPUID 01/04/2007 (not finished)
;Authors: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
; Iliya Mikhailov aka Ghost <Ghost.nsk@gmail.com>
; /^S0rG^\ <s0rg@ngs.ru>
;Features:
; (+) real-time RAM monitoring (previous versions showed changed amount of available RAM only at redraw event or CPUID window activation);
; (+) fixed address of LAHF feature, added detection of CMPL, SVM, MOVCR8 technologies for AMD;
; (+) fixed L2 cache size detection for VIA (they changed format from 8 bits to 16 bits several years ago);
; (+) more macroses for Interface and Threads (from Menuett.inc written by /^S0rG^\, 2002), sources separated into several include files;