Subversion Repositories Kolibri OS

Rev

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

Rev 4862 Rev 6483
Line 1... Line 1...
1
;******************************************************************************
1
;******************************************************************************
2
; project name:  CPUID                                                        *
2
; project name:  CPUID							      *
3
; platform:      KolibriOS, x86 (IA-32), x86-64 achitectures                  *
3
; platform:	 KolibriOS, x86 (IA-32), x86-64 achitectures		      *
4
; compiler:      flat assembler 1.70.03                                       *
4
; compiler:	 flat assembler 1.70.03 				      *
5
; version:       2.28                                                         *
5
; version:	 2.29							      *
6
; last update:   23rd October 2013                                            *
6
; last update:	 12 October 2014					      *
7
; maintained by: Sergey Kuzmin aka Wildwest                                   *
7
; maintained by: Sergey Kuzmin aka Wildwest				      *
8
; e-mail:        kuzmin_serg@list.ru                                          *
8
; e-mail:	 kuzmin_serg@list.ru					      *
9
; site:          http://coolthemes.narod.ru/files.html                        *
9
; site: 	 http://coolthemes.narod.ru/files.html			      *
10
; license:       Copyright 2004-2013 Sergey Kuzmin and co-authors             *
10
; license:	 Copyright 2004-2014 Sergey Kuzmin and co-authors	      *
11
;                Rules:                                                       *
11
;		 Rules: 						      *
12
;                1)you can use pieces of code in your project, but should     *
12
;		 1)you can use pieces of code in your project, but should     *
13
;                mention the original author (include copyright notice);      *
13
;		 mention the original author (include copyright notice);      *
14
;                2)if you modify CPUID (improve, port, translate, etc) send   *
14
;		 2)if you modify CPUID (improve, port, translate,  etc) send   *
15
;                your changes to the maintainer or make about post changes    *
15
;		 your changes to the maintainer or make about post changes    *
Line 24... Line 24...
24
  dd	 START
24
  dd	 START
25
  dd	 I_END
25
  dd	 I_END
26
  dd U_END+4096
26
  dd U_END+4096
27
  dd U_END+4096
27
  dd U_END+4096
28
  dd	 0x0
28
  dd	 0x0
29
  dd	 0x0
29
  dd	 path
Line 30... Line 30...
30
 
30
 
31
include 'lang.inc'                              ; language support
31
include 'lang.inc'				; language support
32
include '..\..\..\macros.inc' ; useful macroses
32
include 'macros.inc' ; useful macroses
33
include 'draw.inc'
33
include 'draw.inc'
34
include 'brand.inc'           ;Brand ID decoding
34
include 'brand.inc'	      ;Brand ID decoding
35
include 'caches.inc'          ;(L1 and L2 cashes decoding for Intel)
35
include 'caches.inc'	      ;(L1 and L2 cashes decoding for Intel)
36
include 'multipli.inc'        ;(multiplier decoding)
36
include 'multipli.inc'	      ;(multiplier decoding)
Line -... Line 37...
-
 
37
include 'features.inc'	      ;(features decoding)
-
 
38
 
37
include 'features.inc'        ;(features decoding)
39
;include 'gif2img.inc'	      ;macros to convert gif to img
38
 
40
 
-
 
41
include 'rsatest.inc'
-
 
42
include 'variable.inc'
-
 
43
include 'load_lib.mac'
Line -... Line 44...
-
 
44
 
-
 
45
@use_library
-
 
46
 
-
 
47
START:			;
-
 
48
	mcall	68,11
-
 
49
	mcall	66,1,1
-
 
50
 
-
 
51
load_libraries l_libs_start,end_l_libs
-
 
52
;-----------------------------------------------------------------------------
-
 
53
;OpenDialog     initialisation
-
 
54
	push	dword OpenDialog_data
-
 
55
	call	[OpenDialog_Init]
-
 
56
 
-
 
57
	mov	edi,filename_area
-
 
58
	mov	esi,start_temp_file_name
-
 
59
	call	copy_file_name_path
Line 39... Line -...
39
include 'rsatest.inc'
-
 
40
include 'variable.inc'
60
;-----------------------------------------------------------------------------
41
 
61
	mcall	68,12,4096*8 ; 16 Kb - I hope this will be enough for store of data
42
 
62
	mov	[store_text_area_start],eax
43
 
63
 
44
START:			;   LET'S GO!!!
64
 
Line 172... Line 192...
172
 
192
 
173
mov ecx, eax	      ; get Extended model
193
mov ecx, eax	      ; get Extended model
174
shr ecx,16	      ;shift it to the correct position
194
shr ecx,16	      ;shift it to the correct position
175
and ecx, 0000000Fh 
195
and ecx, 0000000Fh
-
 
196
shl ecx, 4
176
shl ecx, 4
197
mov dword[newpc],ecx	 ;  this value for old pc=0 and for new pc>0
177
add ecx, [m]
198
add ecx, [m]
Line 178... Line 199...
178
mov dword[em],ecx     ;  effective    model
199
mov dword[em],ecx     ;  effective    model
179
 
200
 
Line 209... Line 230...
209
and ecx,0000000Fh ;    get CPU model
230
and ecx,0000000Fh ;    get CPU model
210
mov dword[em],ecx
231
mov dword[em],ecx
Line 211... Line 232...
211
 
232
 
Line 212... Line 233...
212
fut:
233
fut:
-
 
234
 
-
 
235
call decode_sse3_5
-
 
236
 
-
 
237
 
213
 
238
 
214
call decode_sse3
239
;call decode_sse3_5
Line 215... Line 240...
215
;-
240
;-
-
 
241
    call decode_extended
-
 
242
 
-
 
243
    mov   eax,$80000000
-
 
244
    cpuid
-
 
245
 
-
 
246
    mov   [extc], eax  ; max number of calls
Line 216... Line 247...
216
    call decode_extended
247
 
-
 
248
  test	eax, $80000000 ;// Test bit 31
217
 
249
  jz .noname
Line -... Line 250...
-
 
250
 
218
mov  dword [myname], $612F6E
251
  cmp  eax,$80000003
219
 
252
  ja .mynameis
220
        cmp     [extc], $80000003
253
  jmp .noname
221
        jbe     .noname
254
 
222
 
255
.mynameis:
Line 236... Line 269...
236
    cpuid
269
    cpuid
237
    mov   [myname+32],eax
270
    mov   [myname+32],eax
238
    mov   [myname+36],ebx
271
    mov   [myname+36],ebx
239
    mov   [myname+40],ecx
272
    mov   [myname+40],ecx
240
    mov   [myname+44],edx
273
    mov   [myname+44],edx
-
 
274
    jmp   red
Line 241... Line 275...
241
 
275
 
242
.noname:
276
.noname:
Line 243... Line 277...
243
red:			
277
red:
Line -... Line 278...
-
 
278
 
-
 
279
;mov byte [multiplier], 115;     ; for testing
244
 
280
 
245
;mov byte [multiplier], 115;     ; for testing
281
call decode_sse3
Line 246... Line 282...
246
 
282
 
247
call multipl			      ; get multiplier 
283
call multipl			      ; get multiplier
Line 276... Line 312...
276
 
312
 
Line 277... Line 313...
277
output:
313
output:
Line 278... Line -...
278
 
-
 
279
   call draw_window    ;     Draw window
-
 
280
 
-
 
281
typedetect:
-
 
282
        mov     edx, t1
-
 
283
        cmp     [t], 00b
-
 
284
        jz      @f
-
 
285
        mov     edx, t2
-
 
286
        cmp     [t], 01b
-
 
287
        jz      @f
-
 
288
        mov     edx, t3
-
 
289
        cmp     [t], 11b
314
 
290
        jz      @f
-
 
291
        mov     edx, t4
-
 
292
@@:
-
 
Line 293... Line 315...
293
        mov     ebx, 290*65536 + 250
315
   call draw_window    ;     Draw window
294
        mov     ecx, 0x80000000
316
 
295
        mcall   4
317
;HRERE
296
 
318
 
Line 304... Line 326...
304
; Rise Technology - "RiseRiseRise"
326
; Rise Technology - "RiseRiseRise"
305
; SiS - "SiS SiS SiS "
327
; SiS - "SiS SiS SiS "
306
; Transmeta - "GenuineTMx86"       +
328
; Transmeta - "GenuineTMx86"       +
307
; National Semiconductor - "Geode by NSC"
329
; National Semiconductor - "Geode by NSC"
308
; Vortex - "Vortex86 SoC"       + initial support
330
; Vortex - "Vortex86 SoC"       + initial support
309
  cmp dword[smallvendor], 'ntel'
331
  cmp dword[smallvendor], 'ntel'   ;1
310
  jz Intel
332
  jz Intel
311
  cmp dword[smallvendor], 'cAMD'
333
  cmp dword[smallvendor], 'cAMD'   ;2
312
  jz AMD
334
  jz AMD
313
  cmp dword[smallvendor], 'tead'
335
  cmp dword[smallvendor], 'tead'   ;3
314
  jz Cyrix
336
  jz Cyrix
315
  cmp dword[smallvendor], 'auls'
337
  cmp dword[smallvendor], 'auls'    ;4
316
  jz Centaur
338
  jz Centaur
317
  cmp dword[smallvendor], 'Mx86'
339
  cmp dword[smallvendor], 'Mx86'    ;5
318
  jz Transmeta
340
  jz Transmeta
319
  cmp dword[smallvendor], ' SoC'
341
  cmp dword[smallvendor], ' SoC'    ;6
320
  jz Vortex
342
  jz Vortex
Line 321... Line 343...
321
 
343
 
322
; cmp ecx, 'UMC '
344
; cmp ecx, 'UMC '
323
; jz .UMC
345
; jz .UMC
Line 330... Line 352...
330
; cmp ecx, ' NSC'
352
; cmp ecx, ' NSC'
331
; jz .NSC
353
; jz .NSC
332
; jmp Other   ;  I don't know what to do with you...
354
; jmp Other   ;  I don't know what to do with you...
333
Other:
355
Other:
334
Text 75,70,0x00000000,other, otherlen-other
356
Text 75,70,0x00000000,other, otherlen-other
-
 
357
 
-
 
358
mov esi, other
-
 
359
mov edi, [saveproc]
-
 
360
call concatname
-
 
361
 
335
    jmp MMXtest
362
    jmp MMXtest
336
;-------------------------
363
;-------------------------
Line 337... Line 364...
337
 
364
 
Line -... Line 365...
-
 
365
AMD:
-
 
366
 
338
AMD:
367
;-------------------------------------------------------------------------------
Line 339... Line 368...
339
 
368
 
-
 
369
Text 15, 190,0x00000000,cache, cachelen-cache
-
 
370
 
340
Text 15, 190,0x00000000,cache, cachelen-cache
371
Text 75,70,,AMDn, AMDnlen-AMDn
341
 
372
mov esi, AMDnNew
342
Text 75,70,,AMDn, AMDnlen-AMDn
373
mov edi, saveproc
343
 
374
call concatname
-
 
375
	mov	esi, amd
344
	mov	esi, amd
376
	call	load_gif
Line 345... Line 377...
345
	call	load_gif
377
PutImage 135,107,201,49,img_area+8
346
PutImage 135,107,201,49,img_area+8
378
MOV [codeN], 2
347
;         place   size
379
;         place   size
Line 398... Line 430...
398
pop ecx
430
pop ecx
Line 399... Line 431...
399
 
431
 
400
shr ecx, 16
432
shr ecx, 16
Line -... Line 433...
-
 
433
mov [L2],ecx
-
 
434
 
-
 
435
movzx edx, dl ;not sure
-
 
436
mov [linel3], eax
-
 
437
 
-
 
438
mov eax, edx
-
 
439
 
-
 
440
and eax,00FF0000h
-
 
441
shr eax, 16
-
 
442
mov [wayl3], eax
-
 
443
 
-
 
444
shr edx, 24
401
mov [L2],ecx
445
mov [L3], edx
402
 
446
 
403
    cmp [f], $5
447
    cmp [f], $5
404
    jz .fiv
448
    jz .fiv
405
    cmp [f], $6
449
    cmp [f], $6
406
    jz .si
450
    jz .si
-
 
451
    cmp [f], $F
-
 
452
    jz fif
-
 
453
    cmp [f], $10   ;family 16, 010h, 
-
 
454
    jz ten
407
    cmp [f], $F
455
   
408
    jz fif
456
 
409
.fiv:	 ;     Family=5
457
.fiv:	 ;     Family=5
410
        mov     [micron], 50
458
	mov	[micron], 50
411
        mov     edx, A50
459
	mov	edx, A50
Line 467... Line 515...
467
@@:
515
@@:
468
        Text    100,70,0x80000000
516
	Text	100,70,0x80000000
469
        jmp     MMXtest
517
	jmp	MMXtest
470
A6:
518
A6:
471
;        mov     [FRS], 266  ;!!!!!!
519
;mov     [FRS], 266  ;!!!!!!
472
 
-
 
473
;        Number  315,90,0,3,dword [FRS],0x000000; MHz 
520
;Number  315,90,0,3,dword [FRS],0x000000; MHz
Line 474... Line 521...
474
 
521
 
Line 475... Line 522...
475
        call    newrating; !!!!
522
	call	newrating; !!!!
476
 
-
 
477
        Text    245,70,0x00000000,pr, prlen-pr
523
 
478
 
524
	Text	245,70,0x00000000,pr, prlen-pr
479
        Number  310,70,0,4,dword [rating],0x000000
525
	Number	310,70,0,4,dword [rating],0x000000
Line 480... Line 526...
480
        mov     edx, At6
526
	mov	edx, At6
Line 481... Line 527...
481
        jmp     @b
527
	jmp	@b
482
 
-
 
483
A8:
528
 
Line 484... Line 529...
484
 
529
A8:
485
;        mov     [FRS], 266	;!!!!!!
530
 
Line 523... Line 568...
523
fif:  ;  AMD-64    Family=15
568
fif:  ;  AMD-64    Family=15
Line 524... Line 569...
524
 
569
 
525
;here is a need to rewrite detection of AMD F-th family according to "Revision Guide for
570
;here is a need to rewrite detection of AMD F-th family according to "Revision Guide for
Line 526... Line -...
526
;AMD AthlonTM 64 and  AMD OpteronTM  Processors" 25759.pdf
-
 
-
 
571
;AMD AthlonTM 64 and  AMD OpteronTM  Processors" 25759.pdf
527
 
572
 
528
; checking sse3 for new AMD's is needed
573
 
529
    cmp [m],$1	; Dual-core Opteron      
574
   cmp [m],$1	;Dual-core Opteron
530
    jz .AF1
575
    jz   AF1.
531
    cmp [m],$3	; Toledo 1024 0.09   // Manchester     ||Windsor Dual Core not supported
576
   cmp [m],$3	;Toledo 1024 0.09   
532
    jz .AF3
577
    jz  AF3.
533
    cmp [m],$4	;Athlon 64 Mobile Athlon 64 FX  ClawHammer (1024) 0.13
578
   cmp [m],$4	;Athlon 64 Mobile Athlon 64 FX  ClawHammer (1024) 0.13
534
    jz .AF4
579
    jz AF4.
535
    cmp [m],$5	; Opteron     Athlon 64 FX 0.13 (1024)
580
   cmp [m],$5	;Opteron Athlon 64 FX 0.13 (1024)
536
    jz .AF5
581
    jz AF5.
537
    cmp [m],$7	;Athlon 64 Athlon 64 FX  Clawhammer(1024) 0.13   Sledgehammer(1024)  0.13  // SSE3+ SanDiego(1024)
582
   cmp [m],$7	;Athlon 64 Athlon 64 FX  Clawhammer(1024) 0.13   Sledgehammer(1024)  0.13  // SSE3+ SanDiego(1024)
538
    jz .AF7
583
    jz AF7.
539
   cmp [m],$8 ; Athlon 64 Mobile Athlon 64 FX ClawHammer (1024) 0.13
584
   cmp [m],$8   ;Athlon 64 Mobile Athlon 64 FX ClawHammer (1024) 0.13
540
    jz .AF8
585
    jz AF8.
541
   cmp [m],$B ; Athlon 64
586
   cmp [m],$B   ;Athlon 64
542
    jz .AFB
587
    jz AFB.
543
   cmp [m],$C ;Athlon 64 Newcastle(512) 0.13  Sempron> Paris (256)   0.13  |SSE3+ Sempron >  Palermo FC0 0.09  // (Venice)
588
   cmp [m],$C   ;Athlon 64 Newcastle(512) 0.13  Sempron> Paris (256)   0.13  |SSE3+ Sempron >  Palermo FC0 0.09  // (Venice)
544
    jz .AFC
589
    jz AFC.
545
   cmp [m],$E  ; Athlon 64    //
590
   cmp [m],$E   ;Athlon 64    
546
    jz .AFE
591
    jz AFE.
547
   cmp [m],$F ; Athlon 64 Winchester(512) |SSE3+ SanDiego(1024)  Venice (512)  Palermo (256) 0.09
592
   cmp [m],$F   ;Athlon 64 Winchester(512) |SSE3+ SanDiego(1024)  Venice (512)  Palermo (256) 0.09
-
 
593
    jz AFF.
-
 
594
    jmp next_generation
-
 
595
    
-
 
596
ten:      ;family = 10h
-
 
597
 
-
 
598
cmp [m],$2  
-
 
599
   jz AB23.
-
 
600
cmp [m], $8 
-
 
601
   jz AB83.
-
 
602
cmp [m], $9   
-
 
603
  jz AB9.      
-
 
604
cmp [m], $2         
-
 
605
  jz AB8check2.
-
 
606
  
-
 
607
AB8check2.:
-
 
608
cmp [s],03h          
-
 
609
    jz AB8right2.
-
 
610
cmp [m],$2
-
 
611
  jz athlonCheck
-
 
612
  
-
 
613
athlonCheck:       
-
 
614
cmp [s],03h
-
 
615
    jz athlonKuma
-
 
616
	
-
 
617
cmp [m], $5    
-
 
618
 jz AB4.
-
 
619
cmp [m],$1     
-
 
620
   jz AB1.     
-
 
621
cmp [m],$4        
-
 
622
    jz AB8check.
-
 
623
    
-
 
624
AB8check.:
-
 
625
cmp [s],02h    
-
 
626
    jz ABC2.
-
 
627
cmp [s],01h    
-
 
628
     jz ABC3.
-
 
629
cmp [m], $9             
-
 
630
    jz AB6.
-
 
631
cmp [m], $2
-
 
632
    jz AB8check. 
-
 
633
cmp [m], 06h   
-
 
634
      jz ABM.   
-
 
635
  
-
 
636
athlonKuma:
-
 
637
      mov [micron], 65
-
 
638
      Text 100,70,0x00000000,AthlonKuma, AthlonKumalen-AthlonKuma
-
 
639
      mov esi, AthlonKuma
-
 
640
      mov edi, saveproc + 0x4
-
 
641
      call concatname
-
 
642
      jmp MMXtest  
-
 
643
         
-
 
644
AB23.:
-
 
645
      mov [micron], 65
-
 
646
      Text 100,70,0x00000000,AB23, AB23len-AB23
-
 
647
      mov esi, AB23
-
 
648
      mov edi, saveproc + 0x4
-
 
649
      call concatname
-
 
650
      jmp MMXtest
-
 
651
        
-
 
652
AB83.:
-
 
653
      mov [micron], 65
-
 
654
      Text 100,70,0x00000000,AB83, AB83len-AB83
-
 
655
      mov esi, AB83
-
 
656
      mov edi, saveproc + 0x4
-
 
657
      call concatname
-
 
658
      jmp MMXtest  
-
 
659
      
-
 
660
AB9.:
-
 
661
      mov [micron], 65
-
 
662
      Text 100,70,0x00000000,AB9, AB9len-AB9
-
 
663
      mov esi, AB9
-
 
664
      mov edi, saveproc + 0x4
-
 
665
      call concatname
-
 
666
      jmp MMXtest  
-
 
667
        
-
 
668
AB8right2.:
-
 
669
       mov [micron], 65
-
 
670
      Text 100,70,0x00000000,AB8right2, AB8right2len-AB8right2
-
 
671
      mov esi, AB8right2
-
 
672
      mov edi, saveproc + 0x4
-
 
673
      call concatname
-
 
674
      jmp MMXtest  
-
 
675
 
-
 
676
AB4.:
-
 
677
      mov [micron], 45
-
 
678
      Text 100,70,0x00000000,AB4, AB4len-AB4
-
 
679
      mov esi, AB4
-
 
680
      mov edi, saveproc + 0x4
-
 
681
      call concatname
-
 
682
      jmp MMXtest  
-
 
683
      
-
 
684
AB1.:
-
 
685
      mov [micron], 65
-
 
686
      Text 100,70,0x00000000,AB1, AB1len-AB1
-
 
687
      mov esi, AB1
-
 
688
      mov edi, saveproc + 0x4
-
 
689
      call concatname
-
 
690
      jmp MMXtest         
-
 
691
      
-
 
692
ABC2.:
-
 
693
      mov [micron], 45
-
 
694
      Text 100,70,0x00000000,ABC2, ABC2len-ABC2
-
 
695
      mov esi, ABC2
-
 
696
      mov edi, saveproc + 0x4
-
 
697
      call concatname
-
 
698
      jmp MMXtest   
-
 
699
      
-
 
700
AB6.:
-
 
701
      mov [micron], 45
-
 
702
      Text 100,70,0x00000000,AB6, AB6len-AB6
-
 
703
      mov esi, AB6
-
 
704
      mov edi, saveproc + 0x4
-
 
705
      call concatname
-
 
706
      jmp MMXtest      
-
 
707
   
-
 
708
ABC3.:
-
 
709
      mov [micron], 45
-
 
710
      Text 100,70,0x00000000,ABC3, ABC3len-ABC3
-
 
711
      mov esi, ABC3
-
 
712
      mov edi, saveproc + 0x4
-
 
713
      call concatname
-
 
714
      jmp MMXtest   
-
 
715
      
-
 
716
ABM.:
-
 
717
      mov [micron], 45
-
 
718
      Text 100,70,0x00000000,ABM2, ABM2len-ABM
-
 
719
      mov esi, ABM2
-
 
720
      mov edi, saveproc + 0x4
-
 
721
      call concatname
548
    jz .AFF
722
      jmp MMXtest
549
    jmp next_generation
723
 
550
.AF1:
724
AF1.:
-
 
725
    mov [micron], 09  ;?
-
 
726
    Text 100,70,0x00000000,AF1, AF1len-AF1
-
 
727
    mov esi, AF1
551
    mov [micron], 09  ;?
728
    mov edi, saveproc + 0x4
552
    Text 100,70,0x00000000,AF1, AF1len-AF1
729
    call concatname
553
    jmp MMXtest
730
    jmp MMXtest
554
.AF3:
731
AF3.:
-
 
732
    mov [micron], 09
-
 
733
    Text 100,70,0x00000000,AF3, AF3len-AF3
-
 
734
    mov esi, AF3
555
    mov [micron], 09
735
    mov edi, saveproc + 0x4
556
    Text 100,70,0x00000000,AF3, AF3len-AF3
736
    call concatname
557
    jmp MMXtest
737
    jmp MMXtest
558
.AF4:
738
AF4.:
-
 
739
    mov [micron], 13
-
 
740
    Text 100,70,0x00000000,AF4, AF4len-AF4
-
 
741
    mov esi, AF4
559
    mov [micron], 13
742
    mov edi, saveproc + 0x4
560
    Text 100,70,0x00000000,AF4, AF4len-AF4
743
    call concatname
561
    jmp MMXtest
744
    jmp MMXtest
562
.AF5:
745
AF5.:
563
    mov [micron], 13
746
    mov [micron], 13
-
 
747
    Text 100,70,0x00000000,AF5, AF5len-AF5
564
    Text 100,70,0x00000000,AF5, AF5len-AF5
748
    jmp MMXtest
565
    jmp MMXtest
749
    
566
.AF7:
750
AF7.:
-
 
751
    mov [micron], 13
-
 
752
    Text 100,70,0x00000000,AF5, AF5len-AF5
-
 
753
    mov esi, AF5
567
    mov [micron], 13
754
    mov edi, saveproc + 0x4
-
 
755
    call concatname
568
    Text 100,70,0x00000000,AF5, AF5len-AF5
756
    jmp MMXtest
569
    jmp MMXtest
757
    
570
.AF8:
758
AF8.:
-
 
759
   mov [micron], 13
-
 
760
   Text 100,70,0x00000000,AF4, AF4len-AF4  
-
 
761
   mov esi, AF4
571
   mov [micron], 13
762
    mov edi, saveproc + 0x4
-
 
763
    call concatname
572
   Text 100,70,0x00000000,AF4, AF4len-AF4  ; AF4, AF5len-AF4
764
   jmp MMXtest
573
   jmp MMXtest
765
   
574
.AFB:
766
AFB.:
-
 
767
    mov [micron], 13
-
 
768
    Text 100,70,0x00000000,AF4, AF4len-AF4
-
 
769
    mov esi, AF4
575
    mov [micron], 13
770
    mov edi, saveproc + 0x4
Line 576... Line 771...
576
Text 100,70,0x00000000,AF4, AF4len-AF4
771
    call concatname
577
 jmp MMXtest
772
 jmp MMXtest
578
 
773
 
Line 579... Line 774...
579
.AFC:
774
AFC.:
580
cmp [L2], 512
775
cmp [L2], 512
Line 581... Line 776...
581
je .AFCn
776
je AFC.n
582
 
777
 
583
cmp [sse3sup], 1
778
cmp [sse3sup], 1
-
 
779
je AFC.npal
-
 
780
 
-
 
781
AFC.npar:  ; paris
584
je .AFCnpal
782
    mov [micron], 13
Line 585... Line 783...
585
 
783
    Text 100,70,0x00000000,AFCs, AFCslen-AFCs
586
.AFCnpar:  ; paris
784
    mov esi, AFCs
587
    mov [micron], 13
785
    mov edi, saveproc + 0x4
-
 
786
    call concatname
-
 
787
    jmp MMXtest
-
 
788
 
588
    Text 100,70,0x00000000,AFCs, AFCslen-AFCs
789
AFC.npal: ; palermo
Line 589... Line 790...
589
    jmp MMXtest
790
    mov [micron], 9
590
 
791
    Text 100,70,0x00000000,AFCsp, AFCsplen-AFCsp
591
.AFCnpal: ; palermo
792
    mov esi, AFCsp
-
 
793
    mov edi, saveproc + 0x4
-
 
794
    call concatname
-
 
795
    jmp MMXtest
592
    mov [micron], 9
796
 
Line 593... Line 797...
593
    Text 100,70,0x00000000,AFCsp, AFCsplen-AFCsp
797
AFC.n: ;newcastle
594
    jmp MMXtest
798
    mov [micron], 13
Line 595... Line 799...
595
 
799
    Text 100,70,0x00000000,AFC, AFClen-AFC
Line 596... Line 800...
596
.AFCn: ;newcastle
800
    mov esi, AFC
597
    mov [micron], 13
801
    mov edi, saveproc + 0x4
Line 598... Line 802...
598
    Text 100,70,0x00000000,AFC, AFClen-AFC
802
    call concatname
Line 619... Line 823...
619
cmp [L2], 256
823
cmp [L2], 256
620
jz .AFp
824
jz .AFp
Line 621... Line 825...
621
 
825
 
622
.AFs:
826
.AFs:
-
 
827
Text 100,70,0x00000000,AFS, AFSlen-AFS
-
 
828
 mov esi, AFS
-
 
829
 mov edi, saveproc + 0x4
623
Text 100,70,0x00000000,AFS, AFSlen-AFS
830
 call concatname
Line 624... Line 831...
624
 jmp MMXtest
831
 jmp MMXtest
625
 
832
 
-
 
833
.AFd:
-
 
834
Text 100,70,0x00000000,AFV, AFVlen-AFV
-
 
835
mov esi, AFV
626
.AFd:
836
    mov edi, saveproc + 0x4
Line 627... Line 837...
627
Text 100,70,0x00000000,AFV, AFVlen-AFV
837
    call concatname
628
 jmp MMXtest
838
 jmp MMXtest
-
 
839
 
-
 
840
.AFp:
-
 
841
Text 100,70,0x00000000,AFCsp, AFCsplen-AFCsp
629
 
842
mov esi, AFCsp
630
.AFp:
843
    mov edi, saveproc + 0x4
631
Text 100,70,0x00000000,AFCsp, AFCsplen-AFCsp
844
    call concatname
-
 
845
 jmp MMXtest
632
 jmp MMXtest
846
;-----------------------------------------------
633
;-----------------------------------------------
-
 
-
 
847
Intel:
-
 
848
mov [codeN], $1   
-
 
849
Text 75,70,0x00000000,Inteln, Intelnlen-Inteln  
634
Intel:
850
	mov esi, IntelnNew   
635
Text 75,70,0x00000000,Inteln, Intelnlen-Inteln
851
	mov edi, saveproc
636
 
852
	call concatname
637
	mov	esi, intel
-
 
638
	call	load_gif
-
 
Line 639... Line 853...
639
PutImage 135,107,201,49,img_area+8
853
	mov	esi, intel
640
;PutImage 125,107,201,49,img_area+8
854
	call	load_gif
641
;         place   size
855
PutImage 135,107,201,49,img_area+8  
642
 
856
 
643
det:
857
det:
644
    cmp [f], $5
858
    cmp [f], $5
645
    jz .five
859
    jz five
646
    cmp [f], $6
860
    cmp [f], $6
647
    jz .six
861
    jz six
648
    cmp [f], $7
862
    cmp [f], $7
Line 649... Line 863...
649
    jz .sev
863
    jz sev
Line 650... Line 864...
650
    cmp [f], $F
864
    cmp [f], $F
651
    jz .fift
865
    jz fift
Line 667... Line 881...
667
    jz .I7
881
    jz .I7
668
    cmp [m],$8
882
    cmp [m],$8
669
    jz .I8
883
    jz .I8
670
.I0:
884
.I0:
671
Text 110,70,0x00000000,P50, P50len-P50
885
Text 110,70,0x00000000,P50, P50len-P50
-
 
886
    mov esi, P50
-
 
887
    mov edi, saveproc + 0x6
-
 
888
    call concatname
672
   mov [L1d], 8
889
   mov [L1d], 8
673
   mov [L1i], 8
890
   mov [L1i], 8
674
   mov [L2], 256
891
   mov [L2], 256
675
   mov [micron], 80
892
   mov [micron], 80
676
 jmp MMXtest
893
 jmp MMXtest
677
.I1:
894
.I1:
678
Text 110,70,0x00000000,P5, P5len-P5
895
Text 110,70,0x00000000,P5, P5len-P5
-
 
896
mov esi, P5
-
 
897
    mov edi, saveproc + 0x6
-
 
898
    call concatname
679
   mov [L1d], 8
899
   mov [L1d], 8
680
   mov [L1i], 8
900
   mov [L1i], 8
681
   mov [L2], 256
901
   mov [L2], 256
682
   mov [micron], 50
902
   mov [micron], 50
683
 jmp MMXtest
903
 jmp MMXtest
-
 
904
 
684
.I2:
905
.I2:
685
Text 110,70,0x00000000,P54C, P54Clen-P54C
906
Text 110,70,0x00000000,P54C, P54Clen-P54C
-
 
907
mov esi, P54C
-
 
908
    mov edi, saveproc + 0x6
-
 
909
    call concatname
686
   mov [L1d], 8
910
   mov [L1d], 8
687
   mov [L1i], 8
911
   mov [L1i], 8
688
   mov [L2], 256
912
   mov [L2], 256
689
   mov [micron], 50
913
   mov [micron], 50
690
 jmp MMXtest
914
 jmp MMXtest
-
 
915
 
691
.I3:
916
.I3:
692
Text 110,70,0x00000000,P54T, P54Tlen-P54T
917
Text 110,70,0x00000000,P54T, P54Tlen-P54T
-
 
918
mov esi, P54T
-
 
919
    mov edi, saveproc + 0x6
-
 
920
    call concatname
693
   mov [L1d], 8
921
   mov [L1d], 8
694
   mov [L1i], 8
922
   mov [L1i], 8
695
   mov [L2], 256
923
   mov [L2], 256
696
   mov [micron], 50
924
   mov [micron], 50
697
 jmp MMXtest
925
 jmp MMXtest
-
 
926
 
698
.I4:
927
.I4:
699
Text 110,70,0x00000000,P55C, P55Clen-P55C
928
Text 110,70,0x00000000,P55C, P55Clen-P55C
-
 
929
mov esi, P55C
-
 
930
    mov edi, saveproc + 0x6
-
 
931
    call concatname
700
   mov [L1d], 8
932
   mov [L1d], 8
701
   mov [L1i], 8
933
   mov [L1i], 8
702
   mov [L2], 256
934
   mov [L2], 256
703
   mov [micron], 35
935
   mov [micron], 35
704
 jmp MMXtest
936
 jmp MMXtest
-
 
937
 
-
 
938
 
705
.I7:
939
.I7:
706
Text 110,70,0x00000000,P54C, P54Clen-P54C
940
Text 110,70,0x00000000,P54C, P54Clen-P54C
-
 
941
mov esi, P54C
-
 
942
    mov edi, saveproc + 0x6
-
 
943
    call concatname
707
   mov [L1d], 8
944
   mov [L1d], 8
708
   mov [L1i], 8
945
   mov [L1i], 8
709
   mov [L2], 256
946
   mov [L2], 256
710
   mov [micron], 35
947
   mov [micron], 35
711
 jmp MMXtest
948
 jmp MMXtest
-
 
949
 
712
.I8:
950
.I8:
713
Text 110,70,0x00000000,P55C, P55Clen-P55C
951
Text 110,70,0x00000000,P55C, P55Clen-P55C
-
 
952
mov esi, P55C
-
 
953
    mov edi, saveproc + 0x6
-
 
954
    call concatname
714
   mov [L1d], 16
955
   mov [L1d], 16
715
   mov [L1i], 16
956
   mov [L1i], 16
716
   mov [L2], 256
957
   mov [L2], 256
717
   mov [micron], 35
958
   mov [micron], 35
718
 jmp MMXtest
959
   jmp MMXtest
-
 
960
 
719
.six:		   ;Family=6
961
six:		  ;Family=6
Line 720... Line 962...
720
 
962
 
-
 
963
Text 15, 190,0x00000000,cache, cachelen-cache
-
 
964
cmp [newpc],$0
Line 721... Line 965...
721
Text 15, 190,0x00000000,cache, cachelen-cache
965
jnz NEWintel
722
 
966
 
723
    cmp [m],$0
967
    cmp [m],$0
724
    jz .I60
968
    jz .I60
Line 747... Line 991...
747
   cmp [m],$F
991
   cmp [m],$F
748
    jz .I6F
992
    jz .I6F
749
.I60:
993
.I60:
750
    mov [micron], 50
994
    mov [micron], 50
751
Text 110,70,0x00000000,P60, P60len-P60
995
    Text 110,70,0x00000000,P60, P60len-P60
-
 
996
    mov esi, P60
-
 
997
    mov edi, saveproc + 0x6
-
 
998
    call concatname
752
 jmp MMXtest
999
    jmp MMXtest
-
 
1000
 
753
.I61:
1001
.I61:
754
    mov [micron], 35
1002
    mov [micron], 35
755
Text 110,70,0x00000000,P61, P61len-P61
1003
    Text 110,70,0x00000000,P61, P61len-P61
-
 
1004
    mov esi, P61
-
 
1005
    mov edi, saveproc + 0x6
-
 
1006
    call concatname
756
 jmp MMXtest
1007
    jmp MMXtest
-
 
1008
    
757
.I63:
1009
.I63:
758
    mov [micron], 28
1010
    mov [micron], 28
759
Text 110,70,0x00000000,P63, P63len-P63
1011
    Text 110,70,0x00000000,P63, P63len-P63
-
 
1012
    mov esi, P63
-
 
1013
    mov edi, saveproc + 0x6
-
 
1014
    call concatname
760
 jmp MMXtest
1015
    jmp MMXtest
-
 
1016
    
761
.I65:
1017
.I65:
762
    mov [micron], 25
1018
    mov [micron], 25
763
    cmp [L2], 0
1019
    cmp [L2], 0
764
    jne .pp65  ; Pentium
1020
    jne .pp65  ; Pentium
765
Text 110,70,0x00000000,P65c, P65clen-P65c
1021
    Text 110,70,0x00000000,P65c, P65clen-P65c
-
 
1022
    mov esi, P65c
-
 
1023
    mov edi, saveproc + 0x6
-
 
1024
    call concatname
766
    jmp MMXtest
1025
    jmp MMXtest
-
 
1026
    
767
.pp65:
1027
.pp65:
768
Text 110,70,0x00000000,P65, P65len-P65
1028
    Text 110,70,0x00000000,P65, P65len-P65
-
 
1029
    mov esi, P65
-
 
1030
    mov edi, saveproc + 0x6
-
 
1031
    call concatname
769
    jmp MMXtest
1032
    jmp MMXtest
770
.I66:
1033
.I66:
771
    mov [micron], 25
1034
    mov [micron], 25
772
Text 110,70,0x00000000,P66, P66len-P66
1035
Text 110,70,0x00000000,P66, P66len-P66
-
 
1036
mov esi, P66
-
 
1037
    mov edi, saveproc + 0x6
-
 
1038
    call concatname
773
    jmp MMXtest
1039
    jmp MMXtest
774
.I67:
1040
.I67:
775
    mov [micron], 25
1041
    mov [micron], 25
776
Text 110,70,0x00000000,P67, P67len-P67 ;but if SSE4.1 supported then it is Intel Core (Penryn) 
1042
Text 110,70,0x00000000,P67, P67len-P67 ;but if SSE4.1 supported then it is Intel Core (Penryn)
-
 
1043
    mov esi, P67
-
 
1044
    mov edi, saveproc + 0x6
-
 
1045
    call concatname
777
    jmp MMXtest
1046
    jmp MMXtest
-
 
1047
    
778
.I68:
1048
.I68:
779
    mov [micron], 18
1049
    mov [micron], 18
780
    cmp [L2], 128
1050
    cmp [L2], 128
781
    jne .pp68  ; Pentium
1051
    jne .pp68  ; Pentium
782
Text 110,70,0x00000000,P68c, P68clen-P68c
1052
Text 110,70,0x00000000,P68c, P68clen-P68c
-
 
1053
mov esi, P68c
-
 
1054
    mov edi, saveproc + 0x6
-
 
1055
    call concatname
783
    jmp MMXtest
1056
    jmp MMXtest
-
 
1057
    
784
 .pp68:
1058
 .pp68:
785
Text 110,70,0x00000000,P68, P68len-P68
1059
Text 110,70,0x00000000,P68, P68len-P68
-
 
1060
mov esi, P68
-
 
1061
    mov edi, saveproc + 0x6
-
 
1062
    call concatname
786
    jmp MMXtest
1063
    jmp MMXtest
-
 
1064
    
787
.I69:
1065
.I69:
788
    mov [micron], 13
1066
    mov [micron], 13
789
Text 110,70,0x00000000,P69 , P69len-P69
1067
Text 110,70,0x00000000,P69 , P69len-P69
-
 
1068
mov esi, P69
-
 
1069
    mov edi, saveproc + 0x6
-
 
1070
    call concatname
790
    jmp MMXtest
1071
    jmp MMXtest
-
 
1072
    
791
.I6A:
1073
.I6A:
792
    mov [micron], 18
1074
    mov [micron], 18
793
Text 110,70,0x00000000,P6A, P6Alen-P6A ;but if SSE4.2 supported then it is Intel Core (Nehalem) 
1075
Text 110,70,0x00000000,P6A, P6Alen-P6A ;but if SSE4.2 supported then it is Intel Core (Nehalem)
-
 
1076
    mov esi, P6A
-
 
1077
    mov edi, saveproc + 0x6
-
 
1078
    call concatname
794
    jmp MMXtest
1079
    jmp MMXtest
-
 
1080
    
795
.I6B:
1081
.I6B:
796
    mov [micron], 13
1082
    mov [micron], 13
797
    cmp [L2], 256
1083
    cmp [L2], 256
798
    jne .pp6B  ; Pentium
1084
    jne .pp6B  ; Pentium
799
Text 110,70,0x00000000,P6Bc, P6Bclen-P6Bc
1085
Text 110,70,0x00000000,P6Bc, P6Bclen-P6Bc
-
 
1086
mov esi, P6Bc
-
 
1087
    mov edi, saveproc + 0x6
-
 
1088
    call concatname
800
    jmp MMXtest
1089
    jmp MMXtest
-
 
1090
    
801
.pp6B:
1091
.pp6B:
802
Text 110,70,0x00000000,P6B, P6Blen-P6B
1092
Text 110,70,0x00000000,P6B, P6Blen-P6B
-
 
1093
mov esi, P6B
-
 
1094
    mov edi, saveproc + 0x6
-
 
1095
    call concatname
803
    jmp MMXtest
1096
    jmp MMXtest
-
 
1097
    
804
.I6D:
1098
.I6D:
805
    mov [micron], 9
1099
    mov [micron], 9
806
Text 110,70,0x00000000,P6D, P6Dlen-P6D
1100
Text 110,70,0x00000000,P6D, P6Dlen-P6D
-
 
1101
mov esi, P6D
-
 
1102
    mov edi, saveproc + 0x6
-
 
1103
    call concatname
807
    jmp MMXtest
1104
    jmp MMXtest
-
 
1105
    
808
.I6E:
1106
.I6E:
809
    mov [micron], 6
1107
    mov [micron], 6
810
Text 110,70,0x00000000,P6E, P6Elen-P6E
1108
Text 110,70,0x00000000,P6E, P6Elen-P6E
-
 
1109
mov esi, P6E
-
 
1110
    mov edi, saveproc + 0x6
-
 
1111
    call concatname
811
    jmp MMXtest
1112
    jmp MMXtest
-
 
1113
    
812
.I6F:
1114
.I6F:
813
    mov [micron], 6
1115
    mov [micron], 6
814
Text 110,70,0x00000000,P6F, P6Flen-P6F
1116
Text 110,70,0x00000000,P6F, P6Flen-P6F
-
 
1117
mov esi, P6F
-
 
1118
    mov edi, saveproc + 0x6
-
 
1119
    call concatname
815
    jmp MMXtest
1120
    jmp MMXtest
Line 816... Line 1121...
816
 
1121
 
817
;06Ex - Pentium M Yonah 0.065
1122
;06Ex - Pentium M Yonah 0.065
Line -... Line 1123...
-
 
1123
;06Fx - Pentium D Conroe 0.065, Xeon Woodcrest, Celeron D AllenDale, Core 2 Kentsfield
-
 
1124
 
-
 
1125
NEWintel:    
-
 
1126
 
-
 
1127
   cmp [em],$3A   ;IvyBridge 
-
 
1128
    jz I3A 
-
 
1129
   cmp [em],$2A   ;SandyBridge
-
 
1130
    jz I2A
-
 
1131
   cmp [em],$2D  ;SandyBridge-E/EN/EP
-
 
1132
    jz I2D
-
 
1133
   cmp [em],$25   ;Arrandale/Clarksdale
-
 
1134
    jz I25
-
 
1135
   cmp [em],$2C   ;Gulftown/Westmere-EP
-
 
1136
    jz I2C        ;westmere-EP stepping B1 -> micron 0.032
-
 
1137
   cmp [em],$2F   ;Westmere-EX
-
 
1138
    jz I2F
-
 
1139
   cmp [em],$1E   ;Clarksfield/Lynnfield/Jasper Forest
-
 
1140
    jz I1E
-
 
1141
   cmp [em],$1A   ;Bloomfield/Nehalem-EP
-
 
1142
    jz I1A
-
 
1143
   cmp [em],$2E   ;Nehalem-EX
-
 
1144
    jz I2E
-
 
1145
   cmp [em],$17   ;Yorkfield/Wolfdale/Penryn/Harpertown (DP)
-
 
1146
    jz I17
-
 
1147
   cmp [em],$1D   ;Dunnington (MP)
-
 
1148
    jz I1D
-
 
1149
   cmp [em],$0F   ;Clovertown/Kentsfield/Conroe/Merom/Woodcrest
-
 
1150
    jz I0F
-
 
1151
   cmp [em],$16   ;Merom Conroe
-
 
1152
    jz I16
-
 
1153
   cmp [em],$06   ;Cedar Mill/Presler
-
 
1154
    jz I06
-
 
1155
   cmp [em],$03   ;Nocona Irwindale / Prescott
-
 
1156
    jz I03
-
 
1157
   cmp [em],$04   ;NoconaIrwindale / Prescott
-
 
1158
    jz I03
-
 
1159
   cmp [em],$0D   ;Dothan
-
 
1160
    jz I0D
-
 
1161
   cmp [em],$36   ;Cedarview
-
 
1162
    jz I36
-
 
1163
   cmp [em],$26   ;Lincroft
-
 
1164
    jz I26
-
 
1165
   cmp [em],$1C   ;Pineview/Silverthorne
-
 
1166
    jz I1C
-
 
1167
 
-
 
1168
Inewunknown:
-
 
1169
    jmp MMXtest
-
 
1170
 
-
 
1171
I3A:
-
 
1172
mov [micron], 32
-
 
1173
;Text 110,70,0x00000000,P3A, P3Alen-P3A
-
 
1174
mov [cname], P3A
-
 
1175
mov esi, P3A
-
 
1176
mov edi, saveproc + 0x10
-
 
1177
call concatname
-
 
1178
jmp MMXtest
-
 
1179
 
-
 
1180
I2A:
-
 
1181
mov [micron], 32
-
 
1182
;Text 110,70,0x00000000,P2A, P2Alen-P2A
-
 
1183
mov [cname], P2A
-
 
1184
mov esi, P2A
-
 
1185
mov edi, saveproc + 0x10
-
 
1186
call concatname
-
 
1187
jmp MMXtest
-
 
1188
 
-
 
1189
I2D:
-
 
1190
mov [micron], 32
-
 
1191
;Text 110,70,0x00000000,P2D, P2Dlen-P2D
-
 
1192
mov [cname], P2D
-
 
1193
mov esi, P2D
-
 
1194
mov edi,saveproc + 0x10
-
 
1195
call concatname
-
 
1196
jmp MMXtest
-
 
1197
 
-
 
1198
I25:
-
 
1199
mov [micron], 32
-
 
1200
;Text 110,70,0x00000000,P25, P25len-P25
-
 
1201
mov [cname], P25  ;P25
-
 
1202
mov esi, P25   
-
 
1203
mov edi, saveproc + 0x10  ;12
-
 
1204
call concatname
-
 
1205
jmp MMXtest
-
 
1206
 
-
 
1207
I2C:
-
 
1208
mov [micron], 32
-
 
1209
;Text 110,70,0x00000000,P2C, P2Clen-P2C
-
 
1210
mov [cname], P2C
-
 
1211
mov esi, P2C
-
 
1212
mov edi,saveproc + 0x10
-
 
1213
call concatname
-
 
1214
    jmp MMXtest
-
 
1215
 
-
 
1216
I2F:
-
 
1217
mov [micron], 32
-
 
1218
;Text 110,70,0x00000000,P2F, P2Flen-P2F
-
 
1219
mov [cname], P2F
-
 
1220
mov esi, P2F
-
 
1221
mov edi, saveproc + 0x10
-
 
1222
call concatname
-
 
1223
    jmp MMXtest
-
 
1224
 
-
 
1225
I1E:
-
 
1226
mov [micron], 32
-
 
1227
;Text 110,70,0x00000000,P1E, P1Elen-P1E
-
 
1228
mov [cname], P1E
-
 
1229
mov esi, P1E
-
 
1230
mov edi, saveproc + 0x10
-
 
1231
call concatname
-
 
1232
    jmp MMXtest
-
 
1233
 
-
 
1234
I1A:
-
 
1235
mov [micron], 45
-
 
1236
;Text 110,70,0x00000000,P1A, P1Alen-P1A
-
 
1237
mov [cname], P1A
-
 
1238
mov esi, P1A
-
 
1239
mov edi, saveproc + 0x10
-
 
1240
call concatname
-
 
1241
    jmp MMXtest
-
 
1242
 
-
 
1243
I2E:
-
 
1244
mov [micron], 45
-
 
1245
;Text 110,70,0x00000000,P2E, P2Elen-P2E
-
 
1246
mov [cname], P2E
-
 
1247
mov esi, P2E
-
 
1248
mov edi, saveproc + 0x10
-
 
1249
call concatname
-
 
1250
    jmp MMXtest
-
 
1251
 
-
 
1252
I17:
818
;06Fx - Pentium D Conroe 0.065, Xeon Woodcrest, Celeron D AllenDale, Core 2 Kentsfield
1253
mov [micron], 45
-
 
1254
;Text 110,70,0x00000000,P17, P17len-P17
-
 
1255
mov [cname], P17
-
 
1256
mov esi, P17
-
 
1257
mov edi, saveproc + 0x10
-
 
1258
call concatname
-
 
1259
    jmp MMXtest
-
 
1260
    
-
 
1261
I1D:
-
 
1262
mov [micron], 45
-
 
1263
;Text 110,70,0x00000000,P1D, P1Dlen-P1D
-
 
1264
mov [cname], P1D
-
 
1265
mov esi, P1D
-
 
1266
mov edi, saveproc + 0x10
-
 
1267
call concatname
819
 
1268
    jmp MMXtest    
-
 
1269
    
-
 
1270
I0F:
-
 
1271
mov [micron], 65
-
 
1272
;Text 110,70,0x00000000,P0F, P0Flen-P0F
-
 
1273
mov [cname], P0F
-
 
1274
mov esi, P0F
-
 
1275
mov edi, saveproc + 0x10
-
 
1276
call concatname
-
 
1277
    jmp MMXtest    
-
 
1278
    
-
 
1279
I16:
-
 
1280
mov [micron], 65
-
 
1281
;Text 110,70,0x00000000,P16, P16len-P16
-
 
1282
mov [cname], P16
-
 
1283
mov esi, P16
-
 
1284
mov edi, saveproc + 0x10
-
 
1285
call concatname
-
 
1286
    jmp MMXtest 
-
 
1287
 
-
 
1288
I06:
-
 
1289
mov [micron], 32
-
 
1290
;Text 110,70,0x00000000,P06, P06len-P06
-
 
1291
mov [cname], P06
-
 
1292
mov esi, P06
-
 
1293
mov edi, saveproc + 0x10
-
 
1294
call concatname
-
 
1295
    jmp MMXtest       
-
 
1296
    
-
 
1297
I03:
-
 
1298
mov [micron], 32
-
 
1299
;Text 110,70,0x00000000,P03, P03len-P03
-
 
1300
mov [cname], P03
-
 
1301
mov esi, P03
-
 
1302
mov edi, saveproc + 0x10
-
 
1303
call concatname
-
 
1304
    jmp MMXtest
-
 
1305
    
-
 
1306
I0D:
-
 
1307
mov [micron], 32
-
 
1308
;Text 110,70,0x00000000,P0D, P0Dlen-P0D
-
 
1309
mov [cname], P0D
-
 
1310
mov esi, P0D
-
 
1311
mov edi, saveproc + 0x10
-
 
1312
call concatname
-
 
1313
    jmp MMXtest
-
 
1314
 
-
 
1315
I36:
-
 
1316
mov [micron], 32
-
 
1317
;Text 110,70,0x00000000,P36, P36len-P36
-
 
1318
mov [cname], P36
-
 
1319
mov esi, P36
-
 
1320
mov edi, saveproc + 0x10
-
 
1321
call concatname
-
 
1322
    jmp MMXtest
-
 
1323
 
-
 
1324
I26:
-
 
1325
mov [micron], 32
-
 
1326
;Text 110,70,0x00000000,P26, P26len-P26
-
 
1327
mov [cname], P26
-
 
1328
mov esi, P26
-
 
1329
mov edi, saveproc + 0x10
-
 
1330
call concatname
-
 
1331
    jmp MMXtest
-
 
1332
    
-
 
1333
I1C:
-
 
1334
mov [micron], 32
-
 
1335
;Text 110,70,0x00000000,P1C, P1Clen-P1C 
-
 
1336
mov [cname], P1C 
-
 
1337
mov esi, P1C
-
 
1338
mov edi, saveproc + 0x10
-
 
1339
call concatname
Line 820... Line 1340...
820
.sev:	 ;Family=7
1340
    jmp MMXtest
-
 
1341
    
-
 
1342
 
Line -... Line 1343...
-
 
1343
;;;;;;;;;;;;;;;;;;;
821
.IS0:
1344
sev:	;Family=7
822
 
1345
.IS0:
-
 
1346
 
-
 
1347
Text 15, 190,0x00000000,cache, cachelen-cache 
-
 
1348
mov [micron], 18
823
Text 15, 190,0x00000000,cache, cachelen-cache ;?
1349
Text 110,70,0x00000000,PS0, PS0len-PS0
Line 824... Line 1350...
824
 
1350
mov esi, PS0
Line 825... Line 1351...
825
    mov [micron], 18
1351
mov edi, saveproc + 0x6
Line 826... Line 1352...
826
Text 110,70,0x00000000,PS0, PS0len-PS0
1352
call concatname
827
 jmp MMXtest
1353
 jmp MMXtest
Line 848... Line 1374...
848
.IF0:
1374
.IF0:
849
    mov [micron], 18
1375
    mov [micron], 18
850
    cmp [L2], 128
1376
    cmp [L2], 128
851
    jne .ppF0  ; Pentium
1377
    jne .ppF0  ; Pentium
852
Text 110,70,0x00000000,PF0c, PF0clen-PF0c
1378
Text 110,70,0x00000000,PF0c, PF0clen-PF0c
-
 
1379
mov esi, PF0c
-
 
1380
    mov edi, saveproc + 0x6
-
 
1381
    call concatname
853
    jmp MMXtest
1382
    jmp MMXtest
854
.ppF0:
1383
.ppF0:
855
Text 110,70,0x00000000,PF0, PF0len-PF0
1384
Text 110,70,0x00000000,PF0, PF0len-PF0
-
 
1385
mov esi, PF0
-
 
1386
    mov edi, saveproc + 0x6
-
 
1387
    call concatname
856
    jmp MMXtest
1388
    jmp MMXtest
857
.IF1:
1389
.IF1:
858
    mov [micron], 18
1390
    mov [micron], 18
859
    cmp [L2], 128
1391
    cmp [L2], 128
860
    je .IF0;jne.ppF1  ; Pentium
1392
    je .IF0;jne.ppF1  ; Pentium
Line 865... Line 1397...
865
  ;  mov   esi,PF0clen-PF0c
1397
  ;  mov   esi,PF0clen-PF0c
866
  ;  mcall
1398
  ;  mcall
867
  ;jmp MMXtest
1399
  ;jmp MMXtest
868
;.ppF1:
1400
;.ppF1:
869
Text 110,70,0x00000000,PF0, PF0len-PF0
1401
Text 110,70,0x00000000,PF0, PF0len-PF0
-
 
1402
mov esi, PF0
-
 
1403
    mov edi, saveproc + 0x6
-
 
1404
    call concatname
870
 jmp MMXtest
1405
 jmp MMXtest
871
.IF2:
1406
.IF2:
872
    mov [micron], 13
1407
    mov [micron], 13
873
    cmp [L2], 128
1408
    cmp [L2], 128
874
    jne .ppF2  ; Pentium
1409
    jne .ppF2  ; Pentium
875
Text 110,70,0x00000000,PF2c, PF2clen-PF2c
1410
Text 110,70,0x00000000,PF2c, PF2clen-PF2c
-
 
1411
mov esi, PF2c
-
 
1412
    mov edi, saveproc + 0x6
-
 
1413
    call concatname
876
 jmp MMXtest
1414
 jmp MMXtest
877
.ppF2:
1415
.ppF2:
878
Text 110,70,0x00000000,PF2, PF2len-PF2
1416
Text 110,70,0x00000000,PF2, PF2len-PF2
-
 
1417
mov esi, PF2
-
 
1418
    mov edi, saveproc + 0x6
-
 
1419
    call concatname
879
 jmp MMXtest
1420
 jmp MMXtest
880
.IF3:
1421
.IF3:
881
    mov [micron], 09
1422
    mov [micron], 09
882
    cmp [L2], 256
1423
    cmp [L2], 256
883
    jne .ppF3  ; Pentium
1424
    jne .ppF3  ; Pentium
884
Text 110,70,0x00000000,PF3c, PF3clen-PF3c
1425
Text 110,70,0x00000000,PF3c, PF3clen-PF3c
-
 
1426
mov esi, PF3c
-
 
1427
    mov edi, saveproc + 0x6
-
 
1428
    call concatname
885
 jmp MMXtest
1429
 jmp MMXtest
886
.ppF3:
1430
.ppF3:
887
Text 110,70,0x00000000,PF3, PF3len-PF3
1431
Text 110,70,0x00000000,PF3, PF3len-PF3
-
 
1432
mov esi, PF3
-
 
1433
    mov edi, saveproc + 0x6
-
 
1434
    call concatname
888
 jmp MMXtest
1435
 jmp MMXtest
Line 889... Line 1436...
889
 
1436
 
890
.IF5:
1437
.IF5:
891
    mov [micron], 09
1438
    mov [micron], 09
892
    cmp [L2], 512
1439
    cmp [L2], 512
893
    jae .ppF5  ; Pentium
1440
    jae .ppF5  ; Pentium
-
 
1441
Text 110,70,0x00000000,PF5c, PF5clen-PF5c
-
 
1442
mov esi, PF5c
-
 
1443
    mov edi, saveproc + 0x6
894
Text 110,70,0x00000000,PF5c, PF5clen-PF5c
1444
    call concatname
895
 jmp MMXtest
1445
 jmp MMXtest
896
.ppF5:
1446
.ppF5:
-
 
1447
Text 110,70,0x00000000,PF5, PF5len-PF5
-
 
1448
mov esi, PF5
-
 
1449
    mov edi, saveproc + 0x6
897
Text 110,70,0x00000000,PF5, PF5len-PF5
1450
    call concatname
Line 898... Line 1451...
898
 jmp MMXtest
1451
 jmp MMXtest
899
 
1452
 
900
 .IF6:
1453
 .IF6:
901
    mov [micron], 06  ; 065
1454
    mov [micron], 06  ; 065
902
    cmp [L2], 512
1455
    cmp [L2], 512
-
 
1456
    ja .ppF6  ; Pentium
-
 
1457
Text 110,70,0x00000000,PF6c, PF6clen-PF6c
-
 
1458
mov esi, PF6c
903
    ja .ppF6  ; Pentium
1459
    mov edi, saveproc + 0x6
904
Text 110,70,0x00000000,PF6c, PF6clen-PF6c
1460
    call concatname
905
 jmp MMXtest
1461
 jmp MMXtest
-
 
1462
.ppF6:
-
 
1463
Text 110,70,0x00000000,PF6, PF6len-PF6
-
 
1464
mov esi, PF6
906
.ppF6:
1465
    mov edi, saveproc + 0x6
Line 907... Line 1466...
907
Text 110,70,0x00000000,PF6, PF6len-PF6
1466
    call concatname
908
 jmp MMXtest
1467
 jmp MMXtest
-
 
1468
 
-
 
1469
 
-
 
1470
 next_generation:
909
 
1471
Text 110,70,0x00000000,NG, NGlen-NG
910
 
1472
mov esi, NG
911
 next_generation:
1473
    mov edi, saveproc + 0x6
Line -... Line 1474...
-
 
1474
    call concatname
912
Text 110,70,0x00000000,NG, NGlen-NG
1475
  jmp MMXtest
Line 913... Line 1476...
913
  jmp MMXtest
1476
;----------------------------------
914
;----------------------------------
1477
Cyrix:
915
Cyrix:
1478
 
916
 
-
 
917
Text 15, 190,0x00000000,cache, cachelen-cache
-
 
-
 
1479
mov [codeN], 3
Line 918... Line 1480...
918
 
1480
Text 15, 190,0x00000000,cache, cachelen-cache
919
	mov	esi, cyrix
1481
 
920
	call	load_gif
1482
	mov	esi, cyrix
921
PutImage 135,107,201,49,img_area+8
1483
	call	load_gif
Line 935... Line 1497...
935
    mov [micron], 50 ;35?
1497
    mov [micron], 50 ;35?
936
    mov [L1i], 8
1498
    mov [L1i], 8
937
    mov [L1d], 8
1499
    mov [L1d], 8
938
    mov [L2], 512
1500
    mov [L2], 512
939
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
1501
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
-
 
1502
mov esi, Cyrixn
-
 
1503
    mov edi, saveproc
-
 
1504
    call concatname
940
Text 110,70,0x00000000,C52, C52len-C52
1505
Text 110,70,0x00000000,C52, C52len-C52
-
 
1506
mov esi, C52
-
 
1507
    mov edi, saveproc + 0x6
-
 
1508
    call concatname
941
    jmp MMXtest
1509
    jmp MMXtest
942
.C54:
1510
.C54:
943
    mov [micron], 50
1511
    mov [micron], 50
944
    mov [L1i], 8
1512
    mov [L1i], 8
945
    mov [L1d], 8
1513
    mov [L1d], 8
946
    mov [L2], 512
1514
    mov [L2], 512
947
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
1515
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
-
 
1516
mov esi, Cyrixn
-
 
1517
    mov edi, saveproc
-
 
1518
    call concatname
948
Text 110,70,0x00000000,C54, C54len-C54
1519
Text 110,70,0x00000000,C54, C54len-C54
-
 
1520
mov esi, C54
-
 
1521
    mov edi, saveproc + 0x6
-
 
1522
    call concatname
949
    jmp MMXtest
1523
    jmp MMXtest
Line 950... Line 1524...
950
 
1524
 
951
.sixx:	   ;Family=6
1525
.sixx:	   ;Family=6
952
   cmp [m],$0
1526
   cmp [m],$0
Line 957... Line 1531...
957
    mov [micron], 25
1531
    mov [micron], 25
958
    mov [L1i], 32
1532
    mov [L1i], 32
959
    mov [L1d], 32
1533
    mov [L1d], 32
960
    mov [L2], 512
1534
    mov [L2], 512
961
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
1535
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
-
 
1536
mov esi, Cyrixn
-
 
1537
    mov edi, saveproc
-
 
1538
    call concatname
962
Text 110,70,0x00000000,C60, C60len-C60
1539
Text 110,70,0x00000000,C60, C60len-C60
-
 
1540
mov esi, C60
-
 
1541
    mov edi, saveproc + 0x6
-
 
1542
    call concatname
963
    jmp MMXtest
1543
    jmp MMXtest
964
.C65:
1544
.C65:
965
    mov [micron], 25 ;35?
1545
    mov [micron], 25 ;35?
966
    mov [L1i], 32
1546
    mov [L1i], 32
967
    mov [L1d], 32
1547
    mov [L1d], 32
968
    mov [L2], 512
1548
    mov [L2], 512
969
Text 75,70,0x00000000,Centaurn, Centaurnlen-Centaurn
1549
Text 75,70,0x00000000,Centaurn, Centaurnlen-Centaurn
-
 
1550
mov esi, Centaurn
-
 
1551
    mov edi, saveproc
-
 
1552
    call concatname
970
    mov edx,C65
1553
    mov edx,C65
971
    mov esi,C65len-C65
1554
    mov esi,C65len-C65
972
    jmp OutProcName
1555
    jmp OutProcName
973
;---------------------
1556
;---------------------
974
Centaur:
1557
Centaur:
Line 981... Line 1564...
981
shr ecx, 24
1564
shr ecx, 24
982
mov [L1d], ecx
1565
mov [L1d], ecx
983
shr edx, 24
1566
shr edx, 24
984
mov [L1i], edx
1567
mov [L1i], edx
Line 985... Line -...
985
 
-
 
986
 
-
 
987
 
1568
 
988
; cache detection routine
1569
; cache detection routine
989
;CACHE1:
1570
;CACHE1:
990
mov eax, 80000005h
1571
mov eax, 80000005h
Line 1065... Line 1646...
1065
PutImage 135,107,201,49,img_area+8
1646
PutImage 135,107,201,49,img_area+8
1066
;PutImage 125,107,201,49,img_area+8
1647
;PutImage 125,107,201,49,img_area+8
1067
;         place   size
1648
;         place   size
Line 1068... Line 1649...
1068
 
1649
 
-
 
1650
Text 75,70,0x00000000,IDTn, IDTnlen-IDTn
-
 
1651
mov esi, IDTn
-
 
1652
    mov edi, saveproc + 0x4
1069
Text 75,70,0x00000000,IDTn, IDTnlen-IDTn
1653
    call concatname
1070
    cmp [m],$4
1654
    cmp [m],$4
1071
    jz .V54
1655
    jz .V54
1072
    cmp [m],$8
1656
    cmp [m],$8
1073
    jz .V58
1657
    jz .V58
Line 1092... Line 1676...
1092
sixC:	;Family=6
1676
sixC:	;Family=6
Line 1093... Line 1677...
1093
 
1677
 
1094
	mov	esi, via
1678
	mov	esi, via
1095
	call	load_gif
1679
	call	load_gif
1096
PutImage 135,107,201,49,img_area+8
-
 
1097
;PutImage 125,107,201,49,img_area+8
-
 
-
 
1680
PutImage 135,107,201,49,img_area+8
Line 1098... Line 1681...
1098
;         place   size
1681
 
-
 
1682
 
-
 
1683
Text 75,70,0x00000000,Centaurn, Centaurnlen-Centaurn
-
 
1684
mov esi, Centaurn
1099
 
1685
    mov edi, saveproc
1100
Text 75,70,0x00000000,Centaurn, Centaurnlen-Centaurn
1686
    call concatname
1101
    cmp [m],$6
1687
    cmp [m],$6
1102
    jz .V66
1688
    jz .V66
1103
    cmp [m],$7
1689
    cmp [m],$7
Line 1137... Line 1723...
1137
Transmeta:
1723
Transmeta:
Line 1138... Line 1724...
1138
 
1724
 
Line 1139... Line 1725...
1139
Text 15, 190,0x00000000,cache, cachelen-cache
1725
Text 15, 190,0x00000000,cache, cachelen-cache
-
 
1726
 
-
 
1727
Text 75,70,,Tranmsmetan, Tranmsmetanlen-Tranmsmetan
-
 
1728
mov esi, Tranmsmetan
Line 1140... Line 1729...
1140
 
1729
    mov edi, saveproc
1141
Text 75,70,,Tranmsmetan, Tranmsmetanlen-Tranmsmetan
1730
    call concatname
1142
 
1731
 
1143
	mov	esi, transmeta
-
 
1144
	call	load_gif
-
 
Line 1145... Line 1732...
1145
PutImage 135,107,201,49,img_area+8
1732
	mov	esi, transmeta
1146
;PutImage 125,107,201,49,img_area+8
1733
	call	load_gif
1147
;         place   size
1734
PutImage 135,107,201,49,img_area+8
1148
 
1735
 
Line 1238... Line 1825...
1238
    mov [L2], 256
1825
    mov [L2], 256
1239
    mov [wayl2], 4
1826
    mov [wayl2], 4
1240
    mov [wayli], 4
1827
    mov [wayli], 4
1241
    mov [wayld], 4
1828
    mov [wayld], 4
1242
Text 75,70,0x00000000,Vortexn, Vortexnlen-Vortexn
1829
Text 75,70,0x00000000,Vortexn, Vortexnlen-Vortexn
-
 
1830
mov esi, Vortexn
-
 
1831
    mov edi, saveproc
-
 
1832
    call concatname
1243
;Text 110,70,0x00000000,V54, V54len-V54
1833
;Text 110,70,0x00000000,V54, V54len-V54
1244
    jmp MMXtest
1834
    jmp MMXtest
Line 1245... Line 1835...
1245
 
1835
 
Line 1275... Line 1865...
1275
   mov	dword [HTTn+ 9],  $6F6E
1865
   mov	dword [HTTn+ 9],  $6F6E
1276
   mov	dword [HTT+ 6],  $6F6E
1866
   mov	dword [HTT+ 6],  $6F6E
Line 1277... Line 1867...
1277
 
1867
 
Line 1278... Line -...
1278
TEXTOUT:
-
 
1279
 
-
 
1280
Text 15,110,0x00000000,fam, famlen-fam
-
 
1281
Text 15,130,,mode, modelen-mode
-
 
1282
Text 15,150,,step, steplen-step
-
 
1283
;--------L1  L2
-
 
1284
Number 75,170,0,3,dword [L1d],0x000000;
-
 
1285
Number 75,190,,,dword [L1i]
-
 
1286
Number 41,210,0,4,dword[L2]
-
 
1287
Number 35,230,0,5,dword[L3]
-
 
1288
;-----------Features
-
 
1289
Number 258,50,0,2,dword [micron]  ; micron
1868
TEXTOUT:
1290
 
1869
 
1291
Text 275,290,0x00000000,HTT, HTTlen-HTT
-
 
1292
Text 275,310,,sse3, sse3len-sse3
-
 
1293
 
-
 
1294
Text 15,70,,name, namelen-name
1870
Text 275,290,0x00000000,HTT, HTTlen-HTT
1295
 
1871
Text 275,310,,sse3, sse3len-sse3
1296
Text 15,290,,MMXs, MMXslen-MMXs
1872
Text 15,290,,MMXs, MMXslen-MMXs
Line 1297... Line 1873...
1297
Text 15,310,,SSE, SSElen-SSE
1873
Text 15,310,,SSE, SSElen-SSE
1298
Text 95,310,,SSE2, SSE2len-SSE2
1874
Text 95,310,,SSE2, SSE2len-SSE2
Line -... Line 1875...
-
 
1875
 
1299
 
1876
;-------------------
1300
    Number 140,170,0,2,dword [wayld],0x000000
1877
TEST3DNOW:
-
 
1878
 
Line 1301... Line -...
1301
    Number 218,170,,,dword [lineld]
-
 
1302
 
-
 
-
 
1879
  xor edx, edx
Line 1303... Line 1880...
1303
    Number 140,190,,,dword [wayli]
1880
  cmp [smallvendor], 'ntel'
1304
    Number 218,190,,,dword [lineli]
1881
;  je @f  ;recent change
Line -... Line 1882...
-
 
1882
jne .t
-
 
1883
 
-
 
1884
.t:
-
 
1885
 
-
 
1886
  mov	eax, $80000001 ;// Setup extended function 8000_0001h
1305
 
1887
  cpuid
-
 
1888
 
-
 
1889
  test	edx, $80000000 ;// Test bit 31
-
 
1890
  jnz	.XIT
-
 
1891
 
1306
    Number 140,210,,,dword [wayl2]
1892
.NOEXTENDED: ;// 3DNow! technology is supported
Line 1307... Line -...
1307
    Number 218,210,,,dword [linel2]
-
 
1308
 
1893
   mov	dword [now+ 9], $6F6E
1309
    Number 140,230,,,dword [wayl3]
1894
   jmp TEST3DNOWP
-
 
1895
.XIT:
-
 
1896
   mov	dword [now+ 9],  $736579
Line 1310... Line 1897...
1310
    Number 218,230,,,dword [linel3]
1897
   jmp TEST3DNOWP
1311
 
1898
 
Line 1312... Line -...
1312
;-------------------
-
 
1313
TEST3DNOW:
1899
TEST3DNOWP:
1314
 
-
 
1315
  xor edx, edx
1900
 
1316
  cmp [smallvendor], 'ntel'
1901
  cmp [smallvendor], 'ntel'
-
 
1902
  je .NOEXTENDEDP
1317
  je @f
1903
 
1318
 
1904
.tp:
-
 
1905
 
1319
  mov	eax, $80000001 ;// Setup extended function 8000_0001h
1906
  mov	eax, $80000001 ;// Setup extended function 8000_0001h
-
 
1907
  cpuid
-
 
1908
 
Line 1320... Line 1909...
1320
  cpuid
1909
test	edx, $40000000 ;// Test bit 30
Line 1321... Line 1910...
1321
 
1910
  jnz	.XITP  ;// 3DNow! technology is supported
1322
@@:
1911
 
Line 1323... Line 1912...
1323
  mov   eax, now+9
1912
.NOEXTENDEDP:
1324
  add   edx, edx
1913
   mov	dword [nowp+ 9], $6F6E
Line 1325... Line 1914...
1325
  call  write_yes_no_cf
1914
   jmp TESTMMXP
1326
 
1915
.XITP:
1327
  mov   eax, nowp+9
1916
   mov	dword [nowp+ 9],  $736579
1328
  add   edx, edx
1917
   jmp TESTMMXP
Line 1359... Line 1948...
1359
   mov	dword [mmxp+ 7],  $736579
1948
   mov	dword [mmxp+ 7],  $736579
1360
   mov	dword [MMXPi+ 8],  $736579
1949
   mov	dword [MMXPi+ 8],  $736579
Line 1361... Line 1950...
1361
 
1950
 
Line 1362... Line 1951...
1362
text3d:
1951
text3d:
1363
 
1952
 
1364
Text 175,290,0x00000000,now, nowlen-now
1953
Text 15,330,0x00000000,now, nowlen-now
Line 1365... Line 1954...
1365
Text 175,310,,nowp, nowplen-nowp
1954
Text 95,330,,nowp, nowplen-nowp
Line 1366... Line 1955...
1366
Text 95,290,,mmxp, mmxplen-mmxp
1955
Text 95,290,,mmxp, mmxplen-mmxp
1367
 
1956
 
-
 
1957
jmp still
1368
jmp still
1958
 
Line 1369... Line 1959...
1369
 
1959
;--------------------------
1370
;--------------------------
1960
NO_CPUID:
1371
NO_CPUID:
1961
 mov [nocpuid], 1
Line 1379... Line 1969...
1379
 
1969
 
1380
; waiting for events
1970
; waiting for events
Line 1381... Line 1971...
1381
event_wait:
1971
event_wait:
1382
 
1972
 
Line 1383... Line 1973...
1383
    ;================_RAM_==============
1973
    ;================_RAM_==============
1384
  Number 200,340,0,4,dword [ram_size_a],0xFFFFFF
1974
  Number 200,350,0,4,dword [ram_size_a],0xFFFFFF ;Number 200,340,0,4,dword [ram_size_a],0xFFFFFF
1385
 
1975
 
Line 1397... Line 1987...
1397
 
1987
 
Line 1398... Line 1988...
1398
  shr eax, 10
1988
  shr eax, 10
Line 1399... Line 1989...
1399
 
1989
 
1400
  mov [ram_size_t], eax
1990
  mov [ram_size_t], eax
1401
 
-
 
1402
  Text 115,340,0x00000000,ram, ramlen-ram
1991
  
Line 1403... Line -...
1403
  Text 300,340,,mb, mblen-mb
-
 
Line 1404... Line 1992...
1404
 
1992
  Text 115,350,0x00000000,ram, ramlen-ram
Line 1405... Line 1993...
1405
  Number 200,340,0,4,dword [ram_size_a],0x000000
1993
  Number 200,350,0,4,dword [ram_size_a],0x000000
1406
 
1994
  Number 270,350,,,dword [ram_size_t]
1407
  Number 270,340,,,dword [ram_size_t]
1995
 
Line 1408... Line 1996...
1408
 
1996
 
1409
;==============================
1997
;==============================
-
 
1998
 
1410
 
1999
	mov	eax,23	     ; function 23 - event wait
1411
	mov	eax,23	     ; function 23 - event wait
2000
	mov	ebx,50	     ; wait for 0.5 second
1412
	mov	ebx,50	     ; wait for 0.5 second
2001
	mcall
1413
	mcall
2002
 
1414
 
2003
    cmp  eax,1		;
Line 1428... Line 2017...
1428
    cmp  ah,1		;  = 1 ?
2017
    cmp  ah,1		;  = 1 ?
1429
    je	close		; close
2018
    je	close		; close
Line 1430... Line 2019...
1430
 
2019
 
1431
    cmp  ah,2		;  = 2 ?
2020
    cmp  ah,2		;  = 2 ?
1432
    je	thread_start	; 
-
 
1433
			; 
-
 
1434
;    cmp  ah,3		;  = 3 ?
-
 
1435
    jne  still
-
 
Line 1436... Line 2021...
1436
 
2021
    je	thread_start	;
-
 
2022
 
Line 1437... Line 2023...
1437
 
2023
    cmp  ah, 3
1438
;vybor:
-
 
1439
 
2024
    je call_OpenDialog
-
 
2025
    
Line 1440... Line -...
1440
; Number 310,70,0,4,dword [rating],0xFFFFFF ;
-
 
1441
 
-
 
1442
; Number 315,90,0,3,dword [FRS]; MHz 
-
 
1443
 
-
 
1444
;cmp [FRS], 266
2026
     mov	eax,11	     ; function 23 - event wait
1445
;jz .s1
-
 
1446
;cmp [FRS], 333
-
 
1447
;jz .s2
-
 
1448
;cmp [FRS], 400
2027
   mov  ebx,1
1449
;jz .s3
2028
   mcall 
1450
 
-
 
1451
;.s1:
-
 
Line 1452... Line 2029...
1452
;mov [FRS], 333
2029
   
1453
;.rating:;
2030
   mov	eax,15	     ; function 23 - event wait
1454
;call newrating
-
 
1455
; Number 310,70,0,4,dword [rating],0x000000
-
 
1456
 
-
 
1457
; Number 315,90,0,3,dword [FRS]; MHz 
-
 
1458
;jmp  still
-
 
1459
;
-
 
1460
;.s2:
-
 
1461
;mov [FRS], 400
-
 
Line 1462... Line 2031...
1462
;jmp .rating
2031
   mov  ebx,3
1463
;
2032
   mcall 
1464
;.s3:
2033
   
Line 1535... Line 2104...
1535
    mov  [num_win2],0	; 
2104
    mov  [num_win2],0	;
Line 1536... Line 2105...
1536
 
2105
 
1537
    or	 eax,-1 	; 
2106
    or	 eax,-1 	;
Line -... Line 2107...
-
 
2107
    mcall
1538
    mcall
2108
 
-
 
2109
 
-
 
2110
draw_window_2:
-
 
2111
 
1539
 
2112
    ;call prepare_text_area
1540
draw_window_2:
2113
 
1541
    mov  eax,12 		   ; function 12:tell os about windowdraw
2114
    mov  eax,12 		   ; function 12:tell os about windowdraw
Line 1542... Line 2115...
1542
    mov  ebx,1h 		    ; 1, start of draw
2115
    mov  ebx,1h 		    ; 1, start of draw
1543
    mcall
2116
    mcall
Line -... Line 2117...
-
 
2117
 
1544
 
2118
 
1545
 
2119
Window 250,250,420,520, 0x33FFFFFF, 0x805080d0, standard  ;460
Line 1546... Line -...
1546
  Window 250,250,420,390, 0x33FFFFFF, 0x805080d0, standard
-
 
1547
	  ; place size
-
 
1548
 
-
 
1549
Text 15, 10,0x00000000, STDCA, STDCAlen-STDCA
2120
; place size
1550
Text 215, 10,, EXTCA, EXTCAlen-EXTCA
2121
 
1551
 
2122
 
1552
Number 135,10,1*256,8,dword [stdc],0x000000
2123
Text 15, 10,0x00000000, STDCA, STDCAlen-STDCA
Line 1594... Line 2165...
1594
;---------------
2165
;---------------
1595
DrawLine 0,  410, 185,185,0x8080FF  ;10
2166
DrawLine 0,  410, 185,185,0x8080FF  ;10
Line 1596... Line 2167...
1596
 
2167
 
1597
mov   eax,$80000000
2168
mov   eax,$80000000
1598
cpuid
2169
cpuid
1599
;mov eax, $03020101   for test of reaction
2170
;mov eax, $03020101  \A0for test of reaction
1600
test eax, eax
2171
test eax, eax
Line 1601... Line 2172...
1601
js  goooddd
2172
js  goooddd
1602
 
2173
 
Line 1611... Line 2182...
1611
Text 15,255,,EST, ESTlen-EST
2182
Text 15,255,,EST, ESTlen-EST
1612
Text 15,275,,TM2, TM2len-TM2
2183
Text 15,275,,TM2, TM2len-TM2
1613
Text 15,295,,VMX, VMXlen-VMX
2184
Text 15,295,,VMX, VMXlen-VMX
1614
Text 15,315,,SVM, SVMlen-SVM
2185
Text 15,315,,SVM, SVMlen-SVM
Line -... Line 2186...
-
 
2186
 
-
 
2187
Text 15,355,0x00000000,SMX, SMXlen-SMX
-
 
2188
Text 15,335,0x00000000,PAGE, PAGElen-PAGE
-
 
2189
Text 15,375,0x00000000,MIS, MISlen-MIS
-
 
2190
Text 115,355,0x00000000,WDT, WDTlen-WDT
1615
 
2191
 
1616
Text 115,195,,CNXT_ID, CNXT_IDlen-CNXT_ID
2192
Text 115,195,,CNXT_ID, CNXT_IDlen-CNXT_ID
1617
Text 115,215,,CX16, CX16len-CX16
2193
Text 115,215,,CX16, CX16len-CX16
1618
Text 115,235,,ETPRD, ETPRDlen-ETPRD
2194
Text 115,235,,ETPRD, ETPRDlen-ETPRD
1619
Text 115,255,,SYS, SYSlen-SYS
2195
Text 115,255,,SYS, SYSlen-SYS
1620
Text 115,275,,LAF, LAFlen-LAF
2196
Text 115,275,,LAF, LAFlen-LAF
1621
Text 115,295,,SSSE3, SSSE3len-SSSE3
2197
Text 115,295,,SSSE3, SSSE3len-SSSE3
Line -... Line 2198...
-
 
2198
Text 115,315,,MCR8, MCR8len-MCR8
-
 
2199
 
-
 
2200
 
-
 
2201
Text 115,335,0x00000000,EAS, EASlen-EAS   
-
 
2202
 
-
 
2203
Text 115,375,0x00000000,DNP, DNPlen-DNP   
-
 
2204
 
-
 
2205
 
1622
Text 115,315,,MCR8, MCR8len-MCR8
2206
Text 315,375,0x00000000,SSE5, SSE5len-SSE5
1623
 
2207
 
1624
Text 215,195,,MP, MPlen-MP
2208
Text 215,195,,MP, MPlen-MP
1625
Text 215,215,,NX, NXlen-NX
2209
Text 215,215,,NX, NXlen-NX
1626
Text 215,235,,MMXPi, MMXPilen-MMXPi
2210
Text 215,235,,MMXPi, MMXPilen-MMXPi
1627
Text 215,255,,MMXn, MMXnlen-MMXn
2211
Text 215,255,,MMXn, MMXnlen-MMXn
Line -... Line 2212...
-
 
2212
Text 215,275,,FXSRn, FXSRnlen-FXSRn
-
 
2213
Text 215,295,,DCA,DCAlen-DCA
-
 
2214
 
-
 
2215
Text 315,295,0x00000000,SSE41,SSE41len-SSE41
-
 
2216
Text 215,335,0x00000000,x2APIC,x2APIClen-x2APIC
1628
Text 215,275,,FXSRn, FXSRnlen-FXSRn
2217
Text 215,355,0x00000000,ABM,ABMlen-ABM
1629
Text 215,295,,DCA,DCAlen-DCA
2218
Text 215,375,0x00000000,OSVW,OSVWlen-OSVW
1630
 
2219
 
1631
Text 315,195,,FFXSR, FFXSRlen-FFXSR
2220
Text 315,195,,FFXSR, FFXSRlen-FFXSR
1632
Text 315,215,,TSCP, TSCPlen-TSCP
2221
Text 315,215,,TSCP, TSCPlen-TSCP
1633
Text 315,235,,LM, LMlen-LM
2222
Text 315,235,,LM, LMlen-LM
1634
Text 315,255,,DNo, DNolen-DNo
-
 
-
 
2223
Text 315,255,,DNo, DNolen-DNo
-
 
2224
Text 315,275,,DN, DNlen-DN
-
 
2225
Text 215,315,,CMPL, CMPLlen-CMPL
-
 
2226
Text 315,315,0x00000000,SS42,SS42len-SS42
Line 1635... Line 2227...
1635
Text 315,275,,DN, DNlen-DN
2227
Text 315,335,0x00000000,PPCNT,PPCNTlen-PPCNT 
1636
Text 315,295,,CMPL, CMPLlen-CMPL
2228
Text 315,295,0x00000000,SSE4A,SSE4Alen-SSE4A   
-
 
2229
Text 315,355,0x00000000,SKINIT_,SKINIT_len-SKINIT_
-
 
2230
 
-
 
2231
too:
Line 1637... Line 2232...
1637
 
2232
DrawLine 10,  400, 430,430,0x8080FF  ;10
1638
 
-
 
Line -... Line 2233...
-
 
2233
 
-
 
2234
Text 15,415,0x00000000,speed, speedlen-speed
-
 
2235
Text 130,415,,kbpersec, kbperseclen-kbpersec
-
 
2236
 
-
 
2237
DrawLine 10, 80, 400, 400, 0x8080FF    
-
 
2238
 
-
 
2239
 Text 90,400,0x80000000,performancestr, 0 
-
 
2240
DrawLine 322, 400, 400, 400, 0x8080FF
-
 
2241
DrawLine 10, 10, 400, 490, 0x8080FF
1639
too:
2242
DrawLine 400, 400, 400, 490, 0x8080FF
-
 
2243
 
-
 
2244
DrawLine 10, 400, 490, 490, 0x8080FF
-
 
2245
 
-
 
2246
	      ; your proc
-
 
2247
		Text 20,415,0x808080FF,currentcpu, 0
-
 
2248
		Number 170,415,0,5,dword [iter],0x000000       ; + 15
-
 
2249
		;Text 115,370,,kbpersec, kbperseclen-kbpersec  ;+ 355
-
 
2250
		mov eax, dword[iter]
-
 
2251
		;mov ebx, 100
-
 
2252
		;mul ebx
-
 
2253
		add eax, 215
-
 
2254
		mov word[linelen], ax	; need to store it as drawline corrupts eax
-
 
2255
		DrawLine 215,  [linelen], 416,416,0x8080FF  ;10 + 355 , 357 
-
 
2256
		DrawLine 215,  [linelen], 417,417,0x8080FF  ;10
-
 
2257
		DrawLine 215,  [linelen], 418,418,0x8080FF  ;10
-
 
2258
	;;;	DrawLine 20,  390, 371,371,0x8080FF  ;10
-
 
2259
 
-
 
2260
		; sample proc 1
-
 
2261
		Text 20,435,0x80000000,samplename1,0	   ; 10 + 40 + 40 +40 + 380
-
 
2262
		Number 170,435,0,5,dword [samplespeed1],0x000000;   ; 25 + 40 + 40 +40 + 380
-
 
2263
		;Text 115,470,0,kbpersec, kbperseclen-kbpersec	; 25 + 40 + 40 +40 + 380
-
 
2264
		mov eax, dword[samplespeed1]
-
 
2265
		add eax, 215
-
 
2266
		mov dword[linelen], eax   ; need to store it as drawline corrupts eax
-
 
2267
		DrawLine 215,  [linelen], 436,436,0x8080FF  ;27+40 + 40 +40  + 380
-
 
2268
		DrawLine 215,  [linelen], 437,437,0x8080FF  ;10
-
 
2269
		DrawLine 215,  [linelen], 438,438,0x8080FF  ;10
-
 
2270
 
-
 
2271
		; sample proc 2
-
 
2272
		Text 20,455,0x80000000,samplename2,0	 ; 10 + 40 + 350
-
 
2273
		Number 170,455,0,5,dword [samplespeed2],0x000000;   ; 25 + 40 + 350
-
 
2274
		;Text 115,410,0,kbpersec, kbperseclen-kbpersec	; 25 + 40 + 350
-
 
2275
		mov eax, dword[samplespeed2]
-
 
2276
		add eax, 215
-
 
2277
		mov dword[linelen], eax   ; need to store it as drawline corrupts eax
-
 
2278
		DrawLine 215,  [linelen], 456,456,0x8080FF  ;27+40 + 355
-
 
2279
		DrawLine 215,  [linelen], 457,457,0x8080FF  ;10
-
 
2280
		DrawLine 215,  [linelen], 458,458,0x8080FF  ;10
-
 
2281
 
-
 
2282
	       ; sample proc 3
-
 
2283
		Text 20,475,0x80000000,samplename3,0	 ; 10 + 40 + 40 + 38
-
 
2284
		Number 170,475,0,5,dword [samplespeed3],0x000000;   ; 25 + 40 + 40 + 355
-
 
2285
		;Text 115,440,0,kbpersec, kbperseclen-kbpersec	; 25 + 40 + 40 + 380
Line 1640... Line 2286...
1640
DrawLine 0,  410, 335,335,0x8080FF  ;10
2286
		mov eax, dword[samplespeed3]
1641
 
2287
		add eax, 215
1642
Text 15,350,0x00000000,speed, speedlen-speed
2288
		mov dword[linelen], eax   ; need to store it as drawline corrupts eax
Line 1643... Line 2289...
1643
Text 130,350,,kbpersec, kbperseclen-kbpersec
2289
		DrawLine 215,  [linelen], 476,476,0x8080FF  ;27+40 + 40
Line -... Line 2290...
-
 
2290
		DrawLine 215,  [linelen], 477,477,0x8080FF  ;10
-
 
2291
		DrawLine 215,  [linelen], 478,478,0x8080FF  ;10
-
 
2292
 
-
 
2293
    mov  eax,12
-
 
2294
    mov  ebx,2h
-
 
2295
    mcall
-
 
2296
 
-
 
2297
    ret
-
 
2298
 
-
 
2299
linelen  dd 0  
1644
 
2300
currentcpu db 'Current CPU',0
Line 1645... Line 2301...
1645
Number 95,350,0,5,dword [iter],0x000000; RSA test results
2301
samplename1 db 'Intel Core i5 CPU', 0x000000    ; not real results!
Line 1646... Line 2302...
1646
 
2302
samplespeed1 dd 62
1647
    mov  eax,12
2303
samplename2 db 'Intel Core i3 CPU', 0
1648
    mov  ebx,2h
2304
samplespeed2 dd 48
1649
    mcall
2305
samplename3 db 'Intel Pentium Dual CPU', 0
Line 1650... Line 2306...
1650
 
2306
samplespeed3 dd 35
1651
    ret
2307
performancestr db 'PERFORMANCE (KB/S in RSA test 256 bit)',0
Line 1652... Line 2308...
1652
 
2308
ptsstring db ''
Line 1653... Line 2309...
1653
num_win2 db 0
2309
num_win2 db 0
1654
 
2310
 
1655
;   *******  main window *******
2311
;   *******  main window *******
1656
 
2312
 
1657
draw_window:
2313
draw_window:
Line -... Line 2314...
-
 
2314
   mov eax,12
-
 
2315
   mov	ebx,1h
-
 
2316
   mcall
-
 
2317
 
-
 
2318
 Window 150,150,350,430, 0x34FFFFFF, 0x805080d0, title
-
 
2319
	  ; place size
-
 
2320
 
-
 
2321
   Button 15,345,92,23,2+0x40000000,0x03FFFFFF ; button "press for more"
1658
   mov eax,12
2322
 
1659
   mov	ebx,1h
2323
	mov	esi, knopka
1660
   mcall
2324
	mov	edi, img_area2
Line 1661... Line 2325...
1661
 
2325
 	call	load_gif2
1662
  Window 150,150,350,385, 0x34FFFFFF, 0x805080d0, title
-
 
1663
	  ; place size
2326
PutImage 15,345,93,24,img_area2+8 ; image "press for more"
1664
 
2327
;         place   size
1665
  Button 15,330,92,23,2+0x40000000,0x03FFFFFF   ;  button "press for more"
2328
 
1666
 
2329
 
1667
	mov	esi, knopka
2330
  Button 15,380,92,23,3+0x40000000,0x03FFFFFF ; button "save" 
Line 1668... Line 2331...
1668
	mov	edi, img_area2
2331
 
1669
	call	load_gif2
2332
	mov	esi, knopka2
1670
PutImage 15,330,93,24,img_area2+8   ; image "press for more"
2333
	mov	edi, img_area3
1671
;         place   size
2334
	call	load_gif2
Line 1672... Line 2335...
1672
 
2335
  PutImage 15,380,93,24,img_area3+8   ; image "save"   
1673
 
-
 
1674
    mov  eax,12
2336
;         place   size
Line 1675... Line 2337...
1675
    mov  ebx,2h
2337
 
Line 1676... Line 2338...
1676
    mcall
2338
    mov  eax,12
-
 
2339
    mov  ebx,2h
Line -... Line 2340...
-
 
2340
    mcall
-
 
2341
 
-
 
2342
    Text 130,270,0x00000000,instruct, instructlen-instruct
-
 
2343
    DrawLine  10,  330, 340,340,0x8080FF  
-
 
2344
    DrawLine 330,  330, 275,340;,0x8080FF   
-
 
2345
    DrawLine  10,   10, 275,340;,0x8080FF 
-
 
2346
    DrawLine  10,  125, 275,275;,0x8080FF  
-
 
2347
    DrawLine 230,  330, 275,275;,0x8080FF 
-
 
2348
 
-
 
2349
  cmp dword[smallvendor], 'cAMD'
-
 
2350
  jne cont
-
 
2351
  cmp [f], $6
-
 
2352
  jne cont
-
 
2353
 
-
 
2354
;   Button 240,85,69,15,3,0x030000FF  ;  button for rating
-
 
2355
;    Text 245,90,0x00FFFFFF,FR, FRlen-FR ; text at button
-
 
2356
 
-
 
2357
   call newrating; !!!!
-
 
2358
 
-
 
2359
     cont:
-
 
2360
    Text 15,50,0x00000000,tsum, tsumlen-tsum   ;
-
 
2361
 
-
 
2362
;Number 82,50,0,4,dword [total],0x000000; MHz
-
 
2363
    mov esi, total
-
 
2364
    mov edi, tsum + 0xB  ;0xA
-
 
2365
    call savenumber
-
 
2366
 
-
 
2367
    ;Number 110,50,0,2,dword [sot]; KHz
-
 
2368
    mov esi, sot
-
 
2369
    mov edi, tsum + 0x10
-
 
2370
    call savenumber
-
 
2371
 
-
 
2372
    ;Number 75,110,1*256,1,dword [f],0x000000 ;
-
 
2373
    mov esi, f
-
 
2374
    mov edi, fam + 0x8     ;0x9
-
 
2375
    call savenumber
-
 
2376
 
-
 
2377
    ;Number 75,130,,,dword [m]
-
 
2378
    mov esi, m
-
 
2379
    mov edi, mode + 0x7
-
 
2380
    call savenumber
-
 
2381
 
-
 
2382
    ;Number 75,150,,,dword [s]
-
 
2383
    mov esi, s
-
 
2384
    mov edi, step + 0xa   ;0x9
-
 
2385
    call savenumber
-
 
2386
 
-
 
2387
    ;Number 110,110,1*256,2,dword [ef]
-
 
2388
    mov esi, ef
-
 
2389
    mov edi, fam + 0xE    ;0x9
-
 
2390
    call savenumber
-
 
2391
 
-
 
2392
    ;Number 110,130,,,dword [em]
-
 
2393
    mov esi, em
-
 
2394
    mov edi, mode + 0xE   ;0xD
-
 
2395
    call savenumber
-
 
2396
 
-
 
2397
    mov esi, multb
-
 
2398
    mov edi, multil + 0xB
-
 
2399
    call savenumber
-
 
2400
 
-
 
2401
    ;Number 105,30,0,1,dword [multa]
-
 
2402
    mov esi, multa
-
 
2403
    mov edi, multil + 0xf
-
 
2404
    call savenumber
-
 
2405
 
-
 
2406
    ;Number 140,170,0,2,dword [wayld],0x000000
-
 
2407
    mov esi, wayld
-
 
2408
    mov edi, cache2 + 0x14   ;0x14
-
 
2409
    call savenumber
-
 
2410
 
-
 
2411
   ;Number 218,170,,,dword [lineld]
-
 
2412
    mov esi, lineld
-
 
2413
    mov edi, cache2 + 0x21
-
 
2414
    call savenumber
-
 
2415
 
-
 
2416
    ;Number 140,190,,,dword [wayli]
-
 
2417
    mov esi, wayli
-
 
2418
    mov edi, cache + 0x14
-
 
2419
    call savenumber
-
 
2420
    ;Number 218,190,,,dword [lineli]
-
 
2421
    mov esi, lineli
-
 
2422
    mov edi, cache + 0x21
-
 
2423
    call savenumber
-
 
2424
 
-
 
2425
    ;Number 140,210,,,dword [wayl2]
-
 
2426
    mov esi, wayl2
-
 
2427
    mov edi, cache3 + 0x14
-
 
2428
    call savenumber
-
 
2429
    ;Number 218,210,,,dword [linel2]
-
 
2430
    mov esi, linel2
-
 
2431
    mov edi, cache3 + 0x21
-
 
2432
    call savenumber
-
 
2433
 
-
 
2434
    ;Number 140,230,,,dword [wayl3]
-
 
2435
    mov esi, wayl3
-
 
2436
    mov edi, cache4 + 0x14
-
 
2437
    call savenumber
-
 
2438
    ;Number 218,230,,,dword [linel3]
-
 
2439
    mov esi, linel3
-
 
2440
    mov edi, cache4 + 0x21
-
 
2441
    call savenumber
-
 
2442
 
-
 
2443
    mov esi, L1d
-
 
2444
    mov edi, cache2 + 0xa 
-
 
2445
    call savenumber
-
 
2446
    
-
 
2447
;Number 75,190,,,dword [ L1i]
-
 
2448
    mov esi, L1i
-
 
2449
    mov edi, cache + 0xa
-
 
2450
    call savenumber
-
 
2451
 
-
 
2452
;Number 41,210,0,4,dword[L2]
-
 
2453
    mov esi, L2
Line 1677... Line -...
1677
 
-
 
1678
    Text 130,270,0x00000000,instruct, instructlen-instruct
2454
    mov edi, cache3 + 0x4    ;0x3
1679
 
2455
    call savenumber
1680
    DrawLine  10,  330, 325,325,0x8080FF
2456
 
Line 1681... Line -...
1681
    DrawLine 330,  330, 275,325;,0x8080FF
-
 
1682
    DrawLine  10,   10, 275,325;,0x8080FF
2457
;Number 35,230,0,5,dword[L3]
Line 1683... Line 2458...
1683
    DrawLine  10,  125, 275,275;,0x8080FF
2458
    mov esi, L3
-
 
2459
    mov edi, cache4 + 0x4   ;0x3
-
 
2460
    call savenumber
1684
    DrawLine 230,  330, 275,275;,0x8080FF
2461
 
-
 
2462
;-----------Features
-
 
2463
;Number 258,50,0,2,dword [micron]  ; micron
-
 
2464
    mov esi, micron
-
 
2465
    mov edi, tech + 0xE
-
 
2466
    call savenumber
-
 
2467
 
-
 
2468
    mov esi, stdc
-
 
2469
    mov edi, STDCA + 0x14
-
 
2470
    call savenumber
-
 
2471
 
-
 
2472
;Number 335,10,,,dword [extc],
-
 
2473
    mov esi, extc
-
 
2474
    mov edi, EXTCA + 0x14
1685
 
2475
    call savenumber
-
 
2476
 
-
 
2477
    Text 15,90,,cpuname, cpunamelen-cpuname;
Line -... Line 2478...
-
 
2478
    Text 255,250,,typen, typenlen-typen
Line 1686... Line 2479...
1686
  cmp dword[smallvendor], 'cAMD'
2479
    Text 175, 50,,tech, techlen-tech;
1687
  jne cont
2480
   
1688
  cmp [f], $6
2481
   red2:
Line 1689... Line 2482...
1689
  jne cont
2482
 
1690
 
2483
    ;;;;;;;;;;;;;;;;;;;;;;;;
Line -... Line 2484...
-
 
2484
    goon: 
-
 
2485
    
-
 
2486
    call decodebrand 
-
 
2487
      
-
 
2488
   typedetect:
-
 
2489
	mov	edx, t1
-
 
2490
	cmp	[t], 00b
-
 
2491
	jz	@f
-
 
2492
	mov	edx, t2
-
 
2493
	cmp	[t], 01b
-
 
2494
	jz	@f
-
 
2495
	mov	edx, t3
-
 
2496
	cmp	[t], 11b
-
 
2497
	jz	@f
-
 
2498
	mov	edx, t4
-
 
2499
@@:
-
 
2500
	mov	ebx, 290*65536 + 250
-
 
2501
	mov	ecx, 0x80000000
-
 
2502
	mcall	4
-
 
2503
	
-
 
2504
    Text 15,250,,brandid, brandidlen-brandid
-
 
2505
 
-
 
2506
    Text 15,110,0x00000000,fam, famlen-fam
-
 
2507
    Text 15,130,0x00000000,mode, modelen-mode
-
 
2508
    Text 15,150,0x00000000,step, steplen-step
-
 
2509
    
-
 
2510
    Text 275,290,0x00000000,HTT, HTTlen-HTT
-
 
2511
    Text 275,310,,sse3, sse3len-sse3
-
 
2512
    
1691
;   Button 240,85,69,15,3,0x030000FF  ;  button for rating
2513
    Text 175,290,0x00000000,SSE41, SSE41len-SSE41
1692
 
2514
    Text 175,310,0x00000000,SSE42, SSE42len-SSE42 
1693
;    Text 245,90,0x00FFFFFF,FR, FRlen-FR ; text at button
2515
    Text 175,330,0x00000000,SSE5, SSE5len-SSE5 
1694
 
2516
    
1695
   call newrating; !!!!
2517
 
1696
 
2518
    Text 15,70,,name, namelen-name
1697
     cont:
-
 
1698
 
-
 
1699
 
-
 
Line -... Line 2519...
-
 
2519
    Text 15,290,,MMXs, MMXslen-MMXs
-
 
2520
    Text 15,310,,SSE, SSElen-SSE
-
 
2521
    Text 95,310,,SSE2, SSE2len-SSE2
-
 
2522
    
-
 
2523
    Text 95,290,,mmxp, mmxplen-mmxp
-
 
2524
    Text 15,330,0x00000000,now, nowlen-now
-
 
2525
    Text 95,330,,nowp, nowplen-nowp  
-
 
2526
    
-
 
2527
    Text 115,350,0x00000000,ram, ramlen-ram
-
 
2528
    Number 200,350,0,4,dword [ram_size_a],0x000000
-
 
2529
    
-
 
2530
    Number 270,350,0,4,dword [ram_size_t]
-
 
2531
    Text 300,350,0x00000000,mb, mblen-mb
-
 
2532
           
-
 
2533
    Text 15, 190,0x00000000,cache, cachelen-cache 
-
 
2534
    Text 15,170,0x00000000,cache2, cache2len-cache2
-
 
2535
    Text 15,210,,cache3, cache3len-cache3
-
 
2536
    Text 15,230,,cache4, cache4len-cache4
-
 
2537
    Text 110,70,0x00000000,dword[cname], 40
-
 
2538
    call	load_gif
-
 
2539
        
-
 
2540
    cmp [nomultiplier], $1
-
 
2541
    je nomultip
-
 
2542
Text   15,30,0x00000000,multil2, multil2len-multil2
-
 
2543
Text   175,30,0x00000000,freql2, freql2len-freql2
-
 
2544
Number 85,30,0,2,dword [multb],0x000000;
-
 
2545
Number 105,30,0,1,dword [multa]
-
 
2546
Number 259,30,0,4,dword [freqbb]
-
 
2547
Number 289,30,0,2,dword [freqll]
-
 
2548
         
-
 
2549
     JumpForCodename: 
-
 
2550
    cmp [codeN], $1
-
 
2551
    je codeNIntel
-
 
2552
    cmp [codeN], $2
-
 
2553
    je codeNAMD
-
 
2554
    cmp [codeN], $3
-
 
2555
    je codeNCyrix
-
 
2556
    cmp [codeN], $4
-
 
2557
    je codeNCentaur
-
 
2558
    cmp [codeN],$5
-
 
2559
    je codeNTransmeta
-
 
2560
    cmp [codeN], $6
-
 
2561
    je codeNVortex
-
 
2562
    
-
 
2563
codeNIntel:
-
 
2564
Text 75,70,0x00000000,Inteln, Intelnlen-Inteln
-
 
2565
mov	esi, intel
-
 
2566
call	load_gif
-
 
2567
PutImage 135,107,201,49,img_area+8  
-
 
2568
jmp nnn
-
 
2569
 
-
 
2570
codeNAMD:
-
 
2571
Text 75,70,,AMDn, AMDnlen-AMDn
-
 
2572
mov	esi, amd
-
 
2573
call	load_gif
-
 
2574
PutImage 135,107,201,49,img_area+8
-
 
2575
jmp nnn
-
 
2576
 
-
 
2577
codeNCyrix:
-
 
2578
Text 75,70,0x00000000,Cyrixn, Cyrixnlen-Cyrixn
-
 
2579
mov	esi, cyrix
-
 
2580
call	load_gif
-
 
2581
PutImage 135,107,201,49,img_area+8
-
 
2582
jmp nnn
-
 
2583
 
-
 
2584
codeNCentaur:
Line 1700... Line 2585...
1700
    Text 15,50,0x00000000,tsum, tsumlen-tsum   ; 
2585
Text 75,70,0x00000000,IDTn, IDTnlen-IDTn
1701
    Text 15,90,,cpuname, cpunamelen-cpuname; 
2586
mov	esi, idt
1702
    Text 255,250,,typen, typenlen-typen;
2587
call	load_gif
1703
    Text 175, 50,,tech, techlen-tech; 
2588
PutImage 135,107,201,49,img_area+8
Line 1740... Line 2625...
1740
    repe scasb
2625
    repe scasb
1741
    dec  edi
2626
    dec  edi
1742
    mov  esi,mynamelen
2627
    mov  esi,mynamelen
1743
    sub  esi,edi
2628
    sub  esi,edi
1744
    Text 105, 10, 0x00000000, edi, esi
2629
    Text 105, 10, 0x00000000, edi, esi
1745
;    Text 105,20,0x00000000,myname, mynamelen-myname
-
 
1746
;-
2630
;-
1747
Text 15,250,,brandid, brandidlen-brandid
2631
Text 15,250,,brandid, brandidlen-brandid
Line 1748... Line 2632...
1748
 
2632
 
Line 1749... Line -...
1749
    ret 		; 
-
 
1750
 
-
 
1751
load_gif:
2633
    ret 		;
Line 1752... Line -...
1752
        mov     edi, img_area
-
 
1753
load_gif2:
2634
 
Line -... Line 2635...
-
 
2635
call_OpenDialog:
1754
 
2636
 
Line 1755... Line 2637...
1755
COLOR_ORDER equ MENUETOS
2637
    mov     [OpenDialog_data.type],1	    ; Save
-
 
2638
 
Line -... Line 2639...
-
 
2639
    push    dword OpenDialog_data
-
 
2640
    call    [OpenDialog_Start]
Line -... Line 2641...
-
 
2641
 
1756
include 'gif_lite.inc'        ; parse GIF files
2642
    cmp     [OpenDialog_data.status],2	    ; OpenDialog does not start
Line -... Line 2643...
-
 
2643
    je	    .save_file_default_path
-
 
2644
 
-
 
2645
    cmp     [OpenDialog_data.status],1
-
 
2646
    jne     still
-
 
2647
 
1757
 
2648
    call    store_data
Line -... Line 2649...
-
 
2649
    jmp     still
-
 
2650
 
-
 
2651
.save_file_default_path:
-
 
2652
     mov     edi,file_name
-
 
2653
     mov     esi,file_default_path
-
 
2654
     call    copy_file_name_path
-
 
2655
     call    store_data
-
 
2656
     jmp     still
-
 
2657
 
-
 
2658
copy_file_name_path:
-
 
2659
	xor	eax,eax
-
 
2660
	cld
-
 
2661
@@:
-
 
2662
	lodsb
-
 
2663
	stosb
-
 
2664
	test	eax,eax
-
 
2665
	jnz	@r
-
 
2666
	ret
-
 
2667
;-----------------------------------------------------------------------------
1758
; DATA AREA
2668
prepare_text_area:
Line 1759... Line 2669...
1759
 
2669
	mov	edi,[store_text_area_start]
-
 
2670
 
Line -... Line 2671...
-
 
2671
	push	edi
1760
title	 db   'CPUID 2.28 by S.Kuzmin & the KolibriOS team',0
2672
	mov	ecx,4096
Line -... Line 2673...
-
 
2673
	mov	eax,dword '    '
1761
 
2674
	cld
Line -... Line 2675...
-
 
2675
	rep	stosd
-
 
2676
	pop	edi
-
 
2677
	mov	[store_text_area_end], edi
-
 
2678
 
Line -... Line 2679...
-
 
2679
	mov esi,title  
-
 
2680
	call addstring
-
 
2681
 
-
 
2682
	mov esi, stm
Line -... Line 2683...
-
 
2683
	call addstring
-
 
2684
 
-
 
2685
	mov esi, myname
Line -... Line 2686...
-
 
2686
	call addstring
-
 
2687
 
-
 
2688
   cmp [nomultiplier], $1
Line -... Line 2689...
-
 
2689
	je noMult
1762
 
2690
	jne detMulti 
Line -... Line 2691...
-
 
2691
	 ;jne detFreq
-
 
2692
	 
Line -... Line 2693...
-
 
2693
	detMulti:
-
 
2694
	mov esi,multil 
Line -... Line 2695...
-
 
2695
	call addstring
1763
tsum:
2696
	jmp detFreq
Line -... Line 2697...
-
 
2697
	
1764
 
2698
	detFreq:
Line -... Line 2699...
-
 
2699
	mov esi, freql
1765
if lang eq it
2700
	call addstring	
Line -... Line 2701...
-
 
2701
	
1766
 
2702
	noMult:
Line -... Line 2703...
-
 
2703
	mov esi,multi3 
-
 
2704
	call addstring 
Line -... Line 2705...
-
 
2705
	
-
 
2706
	mov esi,freql3 
Line -... Line 2707...
-
 
2707
	call addstring 	 
1767
                db 'Frequenza:     .   MHz'
2708
 
Line -... Line 2709...
-
 
2709
	mov esi, tech
1768
 
2710
	call addstring
Line 1769... Line 2711...
1769
else
2711
  
-
 
2712
	mov esi, saveproc
Line -... Line 2713...
-
 
2713
	call addstring
1770
 
2714
 
Line -... Line 2715...
-
 
2715
	mov esi, cpuname   
1771
                db 'Frequency:     .   MHz'
2716
	call addstring
Line 1772... Line 2717...
1772
 
2717
 
-
 
2718
	mov esi, fam
Line -... Line 2719...
-
 
2719
	call addstring
-
 
2720
 
Line -... Line 2721...
-
 
2721
	mov esi, mode
-
 
2722
	call addstring
Line -... Line 2723...
-
 
2723
 
-
 
2724
	mov esi, step
Line -... Line 2725...
-
 
2725
	call addstring
-
 
2726
 
Line -... Line 2727...
-
 
2727
	mov esi, cache2
1773
end if
2728
	call addstring
Line -... Line 2729...
-
 
2729
 
-
 
2730
	mov esi, cache
Line -... Line 2731...
-
 
2731
	call addstring
-
 
2732
 
Line 1774... Line 2733...
1774
 
2733
	mov esi, cache3
-
 
2734
	call addstring
Line 1775... Line 2735...
1775
 
2735
 
-
 
2736
	mov esi, cache4
Line -... Line 2737...
-
 
2737
	call addstring
1776
 
2738
 
Line -... Line 2739...
-
 
2739
	mov esi, brandid
-
 
2740
	call addstring
Line -... Line 2741...
-
 
2741
 
-
 
2742
	mov esi, MMXs
Line 1777... Line 2743...
1777
 
2743
	call addstring
-
 
2744
 
Line 1778... Line 2745...
1778
 
2745
	mov esi, mmxp
-
 
2746
	call addstring
Line 1779... Line 2747...
1779
tsumlen:
2747
 
-
 
2748
	mov esi, now
Line -... Line 2749...
-
 
2749
	call addstring
-
 
2750
 
Line -... Line 2751...
-
 
2751
	mov esi, HTT
-
 
2752
	call addstring
Line 1780... Line 2753...
1780
 
2753
 
-
 
2754
	mov esi, SSE
Line 1781... Line 2755...
1781
 
2755
	call addstring
-
 
2756
	
Line -... Line 2757...
-
 
2757
	mov esi, SSE41
1782
 
2758
	call addstring
Line -... Line 2759...
-
 
2759
	
-
 
2760
	mov esi, SSE42
Line -... Line 2761...
-
 
2761
	call addstring
-
 
2762
	
Line 1783... Line 2763...
1783
total dd 0x0
2763
	mov esi, SSE5
-
 
2764
	call addstring
Line -... Line 2765...
-
 
2765
 
1784
 
2766
	mov esi, SSE2
Line -... Line 2767...
-
 
2767
	call addstring
1785
total1 dd 0x0
2768
 
Line -... Line 2769...
-
 
2769
	mov esi, nowp
1786
 
2770
	call addstring
Line 1787... Line 2771...
1787
rating dd 0x0
2771
 
-
 
2772
	mov esi, sse3
Line 1788... Line 2773...
1788
 
2773
	call addstring
-
 
2774
 
Line -... Line 2775...
-
 
2775
	mov esi, standard
-
 
2776
	call addstring
Line -... Line 2777...
-
 
2777
 
-
 
2778
	mov esi, STDCA
Line -... Line 2779...
-
 
2779
	call addstring
-
 
2780
 
Line -... Line 2781...
-
 
2781
	mov esi, EXTCA
-
 
2782
	call addstring
Line 1789... Line 2783...
1789
rat dd 0x0  ;
2783
 
-
 
2784
	mov esi, FPU
Line -... Line 2785...
-
 
2785
	call addstring
-
 
2786
 
Line -... Line 2787...
-
 
2787
	mov esi, VME
-
 
2788
	call addstring
Line 1790... Line 2789...
1790
 
2789
 
-
 
2790
	mov esi, DE
Line 1791... Line 2791...
1791
 
2791
	call addstring
-
 
2792
 
Line 1792... Line -...
1792
 
-
 
Line -... Line 2793...
-
 
2793
	mov esi, PSE
-
 
2794
	call addstring
Line -... Line 2795...
-
 
2795
 
-
 
2796
	mov esi, TSC
Line -... Line 2797...
-
 
2797
	call addstring
1793
ram:
2798
 
Line -... Line 2799...
-
 
2799
	mov esi, MSR
1794
 
2800
	call addstring
Line -... Line 2801...
-
 
2801
 
1795
if lang eq it
2802
	mov esi, PAE
Line -... Line 2803...
-
 
2803
	call addstring
1796
 
2804
 
Line -... Line 2805...
-
 
2805
	mov esi, MCE
1797
                db 'RAM libera:        su'
2806
	call addstring
Line 1798... Line 2807...
1798
 
2807
 
-
 
2808
	mov esi, CX8
Line -... Line 2809...
-
 
2809
	call addstring
-
 
2810
 
Line -... Line 2811...
-
 
2811
	mov esi, APIC
-
 
2812
	call addstring
Line -... Line 2813...
-
 
2813
 
-
 
2814
	mov esi, Res
Line -... Line 2815...
-
 
2815
	call addstring
-
 
2816
 
Line -... Line 2817...
-
 
2817
	mov esi, SEP
1799
else
2818
	call addstring
Line -... Line 2819...
-
 
2819
 
-
 
2820
	mov esi, MTRR
Line -... Line 2821...
-
 
2821
	call addstring
-
 
2822
 
Line -... Line 2823...
-
 
2823
	mov esi, PGE
1800
 
2824
	call addstring
Line -... Line 2825...
-
 
2825
 
-
 
2826
	mov esi, MCA
Line -... Line 2827...
-
 
2827
	call addstring
-
 
2828
 
Line 1801... Line 2829...
1801
                db 'Available RAM:     out of'
2829
	mov esi, CMOV
-
 
2830
	call addstring
Line -... Line 2831...
-
 
2831
 
1802
 
2832
	mov esi, PAT
Line -... Line 2833...
-
 
2833
	call addstring
1803
end if
2834
 
Line -... Line 2835...
-
 
2835
	mov esi, PSE36
-
 
2836
	call addstring
Line -... Line 2837...
-
 
2837
 
-
 
2838
	mov esi, PSNUM
Line -... Line 2839...
-
 
2839
	call addstring
1804
 
2840
 
Line -... Line 2841...
-
 
2841
	mov esi, CLFLUSHn
1805
 
2842
	call addstring
Line -... Line 2843...
-
 
2843
 
1806
 
2844
	mov esi, Res
Line -... Line 2845...
-
 
2845
	call addstring
-
 
2846
 
Line -... Line 2847...
-
 
2847
	mov esi, DTS
-
 
2848
	call addstring
Line 1807... Line 2849...
1807
 
2849
 
-
 
2850
	mov esi, ACPI
Line -... Line 2851...
-
 
2851
	call addstring
1808
 
2852
 
Line -... Line 2853...
-
 
2853
	mov esi, MMX
1809
ramlen:
2854
	call addstring
Line -... Line 2855...
-
 
2855
 
-
 
2856
	mov esi, FXSR
Line -... Line 2857...
-
 
2857
	call addstring
-
 
2858
 
Line -... Line 2859...
-
 
2859
	mov esi, SSE
1810
 
2860
	call addstring
Line -... Line 2861...
-
 
2861
 
1811
 
2862
 
Line -... Line 2863...
-
 
2863
	mov esi, SSn
1812
 
2864
	call addstring
Line -... Line 2865...
-
 
2865
 
-
 
2866
	mov esi, HTT
Line -... Line 2867...
-
 
2867
	call addstring
-
 
2868
 
Line 1813... Line 2869...
1813
NEF:
2869
	mov esi, TM
-
 
2870
	call addstring
Line -... Line 2871...
-
 
2871
 
1814
 
2872
	mov esi, IA64
Line -... Line 2873...
-
 
2873
	call addstring
1815
db 'EXTENDED FEATURES ARE NOT AVAILABLE'
2874
 
Line 1816... Line 2875...
1816
 
2875
	mov esi, PBE
Line -... Line 2876...
-
 
2876
	call addstring
1817
NEFlen:
2877
 
-
 
2878
	mov esi, SS3
-
 
2879
	call addstring
-
 
2880
 
-
 
2881
	mov esi, CNXT_ID
-
 
2882
	call addstring
-
 
2883
 
-
 
2884
	mov esi, MP
-
 
2885
	call addstring
-
 
2886
 
-
 
2887
	mov esi, FFXSR
-
 
2888
	call addstring
-
 
2889
 
-
 
2890
	mov esi, MON
-
 
2891
	call addstring
-
 
2892
 
-
 
2893
	mov esi, CX16
Line -... Line 2894...
-
 
2894
	call addstring
-
 
2895
 
-
 
2896
	mov esi, NX
1818
 
2897
	call addstring
-
 
2898
 
-
 
2899
	mov esi, TSCP
-
 
2900
	call addstring
Line -... Line 2901...
-
 
2901
 
Line -... Line 2902...
-
 
2902
	mov esi, DS_CPL
-
 
2903
	call addstring
-
 
2904
 
-
 
2905
	mov esi, ETPRD
-
 
2906
	call addstring
-
 
2907
 
-
 
2908
	mov esi, MMXPi
Line 1819... Line 2909...
1819
 
2909
	call addstring
Line -... Line 2910...
-
 
2910
 
-
 
2911
	mov esi, LM
-
 
2912
	call addstring
1820
 
2913
 
-
 
2914
	mov esi, EST
-
 
2915
	call addstring
-
 
2916
 
-
 
2917
	mov esi, SYS
-
 
2918
	call addstring
-
 
2919
 
-
 
2920
	mov esi, MMXn
-
 
2921
	call addstring
-
 
2922
 
-
 
2923
	mov esi, DNo
-
 
2924
	call addstring
-
 
2925
 
Line -... Line 2926...
-
 
2926
	mov esi, TM2
-
 
2927
	call addstring
1821
mb :
2928
 
-
 
2929
	mov esi, LAF
-
 
2930
	call addstring
-
 
2931
 
-
 
2932
	mov esi, FFXSR
-
 
2933
	call addstring
-
 
2934
 
-
 
2935
	mov esi, DN
Line -... Line 2936...
-
 
2936
	call addstring
1822
 
2937
 
-
 
2938
	mov esi, VMX
Line -... Line 2939...
-
 
2939
	call addstring
-
 
2940
 
-
 
2941
	mov esi, SSSE3
-
 
2942
	call addstring
-
 
2943
 
-
 
2944
	mov esi, DCA
-
 
2945
	call addstring
-
 
2946
 
-
 
2947
	mov esi, CMPL
1823
db 'MB'
2948
	call addstring
Line 1824... Line -...
1824
 
-
 
Line 1825... Line -...
1825
mblen:
-
 
Line -... Line 2949...
-
 
2949
 
-
 
2950
	mov esi, SVM
-
 
2951
	call addstring
Line -... Line 2952...
-
 
2952
 
-
 
2953
	mov esi, MCR8
Line 1826... Line 2954...
1826
 
2954
	call addstring
Line -... Line 2955...
-
 
2955
	
Line -... Line 2956...
-
 
2956
	mov esi, SMX
-
 
2957
	call addstring	
Line -... Line 2958...
-
 
2958
	
-
 
2959
	mov esi, x2APIC
-
 
2960
	call addstring
-
 
2961
	
-
 
2962
	mov esi, PPCNT
-
 
2963
	call addstring
-
 
2964
	
-
 
2965
	mov esi, PAGE
-
 
2966
	call addstring
-
 
2967
	
-
 
2968
	mov esi, EAS
-
 
2969
	call addstring
-
 
2970
	
-
 
2971
	mov esi, ABM
-
 
2972
	call addstring
-
 
2973
	
-
 
2974
  mov esi, MIS
-
 
2975
  call addstring
-
 
2976
  
-
 
2977
  mov  esi,OSVW
-
 
2978
  call addstring
-
 
2979
  
-
 
2980
  mov esi,SKINIT_
-
 
2981
  call addstring
-
 
2982
  
-
 
2983
  mov esi, WDT
-
 
2984
  call addstring
-
 
2985
  
-
 
2986
	ret
-
 
2987
	
-
 
2988
addstring:
-
 
2989
	mov edi, [store_text_area_end]
-
 
2990
	xor eax, eax
-
 
2991
	xor ecx, ecx
-
 
2992
	cld
-
 
2993
@@:
-
 
2994
	lodsb
-
 
2995
	stosb
-
 
2996
	inc	[store_text_area_end]
-
 
2997
	cmp	[esi], byte 0x0
-
 
2998
	jnz	@r
-
 
2999
	mov	al,0Ah
-
 
3000
	stosb
-
 
3001
 
-
 
3002
	mov	[store_text_area_end],edi
-
 
3003
	xor	edi,edi
-
 
3004
	xor	esi, esi
-
 
3005
ret
-
 
3006
 
-
 
3007
savenumber:
-
 
3008
	xor eax, eax
-
 
3009
	cld
-
 
3010
	lodsw
-
 
3011
	call numbertostring
-
 
3012
	xor esi, esi
-
 
3013
	xor edi, edi
-
 
3014
 
-
 
3015
ret
-
 
3016
 
-
 
3017
savestring:
-
 
3018
	xor eax, eax
-
 
3019
	cld
-
 
3020
	lodsw
-
 
3021
	;call numbertostring
-
 
3022
	xor esi, esi
-
 
3023
	xor edi, edi
-
 
3024
 
-
 
3025
ret
-
 
3026
 
-
 
3027
numbertostring:
-
 
3028
	mov bx, 10
-
 
3029
	xor cx, cx
-
 
3030
@@m1:
-
 
3031
	xor dx, dx
-
 
3032
	div bx
-
 
3033
	push dx
-
 
3034
	inc cx
-
 
3035
	test ax, ax
-
 
3036
	jnz @@m1
-
 
3037
@@m2:
-
 
3038
	 pop ax
-
 
3039
	 add al, '0'
-
 
3040
	 stosb
-
 
3041
	 loop @@m2
-
 
3042
ret
-
 
3043
 
-
 
3044
concatname:
-
 
3045
	;mov edi, [saveproc]
-
 
3046
	xor eax, eax
-
 
3047
	xor ecx, ecx
-
 
3048
	cld
-
 
3049
@@:
-
 
3050
	lodsb
-
 
3051
	stosb
-
 
3052
	cmp	[esi], byte 0x0
-
 
3053
	jnz	@r
-
 
3054
 
-
 
3055
	xor	edi,edi
-
 
3056
	xor	esi, esi
-
 
3057
ret
-
 
3058
 
-
 
3059
store_data:
-
 
3060
	call prepare_text_area
-
 
3061
	mov	eax,[store_text_area_start]
-
 
3062
	mov	[fileinfo.return],eax
-
 
3063
	mov	ebx,[store_text_area_end]
-
 
3064
	sub	ebx,eax
-
 
3065
	inc	ebx
-
 
3066
	mov	[fileinfo.size],ebx
-
 
3067
	mcall	70,fileinfo
-
 
3068
ret
1827
 
3069
 
Line 1828... Line 3070...
1828
 
3070
 
Line 1829... Line 3071...
1829
;logcpus :
3071
 
Line 1830... Line 3072...
1830
 
3072
load_gif:
Line 1831... Line 3073...
1831
;db 'Number of logical CPU:'
3073
	mov	edi, img_area
-
 
3074
load_gif2:
Line 1832... Line 3075...
1832
 
3075
 
Line -... Line 3076...
-
 
3076
COLOR_ORDER equ MENUETOS
Line -... Line 3077...
-
 
3077
include 'gif_lite.inc'	      ; parse GIF files
Line 1833... Line 3078...
1833
;logcpuslen:
3078
 
Line -... Line 3079...
-
 
3079
; DATA AREA
-
 
3080
 
-
 
3081
title	 db   'CPUID 2.29 by S.Kuzmin & the KolibriOS team',0
-
 
3082
 
-
 
3083
stm:
-
 
3084
   db 'Internal name:', 0 
-
 
3085
 
-
 
3086
stmlen:
-
 
3087
 
-
 
3088
SS42:
1834
 
3089
    db 'SSE4.2:       ',0
Line 1835... Line 3090...
1835
 
3090
SS42len:
Line 1836... Line 3091...
1836
 
3091
 
Line 1837... Line 3092...
1837
speed :
3092
SMX:
Line 1838... Line 3093...
1838
 
3093
    db 'SMX:       ',0
Line 1839... Line 3094...
1839
if lang eq it
3094
SMXlen:
Line -... Line 3095...
-
 
3095
 
Line -... Line 3096...
-
 
3096
x2APIC:
Line -... Line 3097...
-
 
3097
    db 'x2APIC:       '
-
 
3098
x2APIClen:
-
 
3099
 
-
 
3100
PPCNT:
-
 
3101
    db 'POPCNT:          '
-
 
3102
PPCNTlen:
-
 
3103
 
-
 
3104
PAGE:
-
 
3105
    db 'Page1Gb:     '
Line 1840... Line 3106...
1840
 
3106
PAGElen:
Line 1841... Line 3107...
1841
                db 'Performance'
3107
 
Line 1842... Line 3108...
1842
 
3108
EAS:
Line 1843... Line 3109...
1843
else
3109
    db 'EAS:                       ',0
Line 1844... Line 3110...
1844
 
3110
EASlen:
Line 1845... Line 3111...
1845
                db 'PERFORMANCE:'
3111
 
Line 1846... Line 3112...
1846
 
3112
newLabel:
Line 1847... Line -...
1847
end if
-
 
1848
 
-
 
1849
 
3113
    db '3DNP:                       ',0
Line 1850... Line 3114...
1850
 
3114
newLabellen:
Line 1851... Line 3115...
1851
 
3115
 
Line 1852... Line 3116...
1852
 
3116
 
Line 1853... Line 3117...
1853
speedlen:
3117
ABM:
Line 1854... Line 3118...
1854
 
3118
    db 'ABM:      '
Line 1855... Line 3119...
1855
 
3119
ABMlen:
Line 1856... Line -...
1856
 
-
 
1857
kbpersec:
-
 
1858
 
3120
 
Line -... Line 3121...
-
 
3121
SSE4A:
-
 
3122
    db 'SSE4A:       '
-
 
3123
SSE4Alen:
Line -... Line 3124...
-
 
3124
 
Line 1859... Line 3125...
1859
db 'KB/SEC'
3125
MIS:
Line -... Line 3126...
-
 
3126
    db 'MIS:      ',0
Line -... Line 3127...
-
 
3127
MISlen:
Line 1860... Line -...
1860
 
-
 
Line 1861... Line 3128...
1861
kbperseclen:
3128
 
Line -... Line 3129...
-
 
3129
DNP:
Line -... Line 3130...
-
 
3130
    db '3DNP:       '
Line 1862... Line 3131...
1862
 
3131
DNPlen:
Line 1863... Line 3132...
1863
 
3132
 
Line 1864... Line 3133...
1864
 
3133
OSVW:
Line -... Line 3134...
-
 
3134
    db 'OSVW:       ',0
Line -... Line 3135...
-
 
3135
OSVWlen:
Line 1865... Line 3136...
1865
instruct:
3136
 
Line -... Line 3137...
-
 
3137
SKINIT_:
Line -... Line 3138...
-
 
3138
    db 'SKINIT:          ',0
Line 1866... Line 3139...
1866
 
3139
SKINIT_len:
Line 1867... Line -...
1867
if lang eq it
-
 
Line -... Line 3140...
-
 
3140
 
Line -... Line 3141...
-
 
3141
WDT:
Line 1868... Line 3142...
1868
 
3142
    db 'WDT:            ',0
Line 1869... Line 3143...
1869
                db 'Set istruzioni'
3143
WDTlen:
Line 1870... Line -...
1870
 
-
 
Line -... Line 3144...
-
 
3144
 
Line 1871... Line 3145...
1871
else
3145
 
Line -... Line 3146...
-
 
3146
saveproc:
Line -... Line 3147...
-
 
3147
   db '                                                   ',0
Line 1872... Line 3148...
1872
 
3148
 
Line 1873... Line 3149...
1873
                db 'Instruction sets'
3149
multil:
Line -... Line 3150...
-
 
3150
  db 'Multiplier:   .          ', 0
-
 
3151
 
-
 
3152
multillen:
-
 
3153
 
-
 
3154
multil2:
-
 
3155
 
1874
 
3156
  db 'Multiplier              .'
-
 
3157
 
-
 
3158
multil2len:
-
 
3159
 
-
 
3160
multi3:
-
 
3161
 
-
 
3162
  db 'Multiplier: n/a',0
-
 
3163
 
-
 
3164
multi3len:
-
 
3165
 
-
 
3166
freql:
-
 
3167
 
-
 
3168
  db 'System clock:     .   MHz', 0
-
 
3169
freqllen:
-
 
3170
 
-
 
3171
freql2:
-
 
3172
 
-
 
3173
  db 'System clock            .   MHz'
-
 
3174
 
-
 
3175
 
-
 
3176
freql2len:
-
 
3177
 
-
 
3178
freql3:
-
 
3179
 
-
 
3180
  db 'System clock: n/a '
Line 1875... Line 3181...
1875
end if
3181
 
Line 1876... Line 3182...
1876
 
3182
 
Line 1877... Line 3183...
1877
 
3183
freql3len:
Line 1878... Line 3184...
1878
 
3184
 
Line 1879... Line 3185...
1879
 
3185
tsum:
Line -... Line 3186...
-
 
3186
 
Line -... Line 3187...
-
 
3187
    db 'Frequency:     .    MHz  ',0
Line 1880... Line 3188...
1880
 
3188
 
Line -... Line 3189...
-
 
3189
tsumlen:
Line -... Line 3190...
-
 
3190
 
1881
instructlen:
3191
tech:
Line 1882... Line 3192...
1882
 
3192
 
Line 1883... Line 3193...
1883
 
3193
    db 'Technology: 0.   micron ', 0
Line 1884... Line 3194...
1884
 
3194
 
Line 1885... Line 3195...
1885
standard    db 'Standard and Extended features plus Performance test',0
3195
techlen:
Line 1886... Line 3196...
1886
 
3196
 
Line -... Line 3197...
-
 
3197
name:
Line 1887... Line -...
1887
 
-
 
Line -... Line 3198...
-
 
3198
 
Line 1888... Line 3199...
1888
 
3199
if lang eq it
Line 1889... Line 3200...
1889
;FR:
3200
 
Line 1890... Line 3201...
1890
 
3201
    db 'Codename:',0
Line 1891... Line 3202...
1891
;    db 'Choose FSB:'
3202
 
Line 1892... Line 3203...
1892
 
3203
else
Line 1893... Line 3204...
1893
;FRlen:
3204
 
Line -... Line 3205...
-
 
3205
    db 'CODENAME:',0
Line 1894... Line 3206...
1894
 
3206
 
Line 1895... Line 3207...
1895
 
3207
 
Line 1896... Line 3208...
1896
 
3208
end if
Line -... Line 3209...
-
 
3209
 
Line -... Line 3210...
-
 
3210
namelen:
-
 
3211
 
-
 
3212
vendorname:
Line -... Line 3213...
-
 
3213
 
1897
STDCA:
3214
if lang eq it
Line 1898... Line 3215...
1898
 
3215
 
Line 1899... Line 3216...
1899
    db 'Highest STD call is         '
3216
     db 'Vendor CPU              ', 0
Line 1900... Line 3217...
1900
 
3217
 
Line 1901... Line 3218...
1901
STDCAlen:
3218
else
Line 1902... Line 3219...
1902
 
3219
 
Line -... Line 3220...
-
 
3220
     db 'CPU VENDOR:             ', 0
-
 
3221
 
-
 
3222
end if
Line -... Line 3223...
-
 
3223
 
-
 
3224
vendornamelen:
-
 
3225
 
-
 
3226
cpuname:
-
 
3227
 
-
 
3228
if lang eq it
-
 
3229
 
-
 
3230
     db 'Vendor CPU              ', 0
-
 
3231
 
-
 
3232
else
-
 
3233
 
-
 
3234
     db 'CPU VENDOR:             ', 0
-
 
3235
 
-
 
3236
end if
-
 
3237
 
-
 
3238
cpunamelen:
-
 
3239
 
-
 
3240
 
-
 
3241
fam:
-
 
3242
 
-
 
3243
if lang eq it
-
 
3244
 
-
 
3245
     db 'Famiglia:   std   ext', 0
-
 
3246
 
-
 
3247
else
-
 
3248
 
-
 
3249
     db 'FAMILY:   std   ext', 0
-
 
3250
 
-
 
3251
end if
-
 
3252
 
Line 1903... Line -...
1903
 
-
 
Line 1904... Line 3253...
1904
 
3253
famlen:
Line 1905... Line 3254...
1905
EXTCA:
3254
 
Line 1906... Line 3255...
1906
 
3255
mode:
Line -... Line 3256...
-
 
3256
 
-
 
3257
if lang eq it
-
 
3258
 
-
 
3259
      db 'Modello:    std    ext', 0
-
 
3260
 
-
 
3261
else
1907
    db 'Highest EXT call is         h'
3262
 
Line 1908... Line 3263...
1908
 
3263
      db 'MODEL:    std    ext', 0
Line 1909... Line 3264...
1909
EXTCAlen:
3264
 
Line -... Line 3265...
-
 
3265
end if
-
 
3266
 
-
 
3267
modelen:
-
 
3268
 
-
 
3269
step:
-
 
3270
 
1910
 
3271
if lang eq it
Line 1911... Line 3272...
1911
 
3272
 
Line 1912... Line 3273...
1912
 
3273
       db 'Stepping:        ', 0
Line 1913... Line 3274...
1913
brandid:
3274
 
Line 1914... Line 3275...
1914
 
3275
else
Line 1915... Line 3276...
1915
    db 'Brand:'
3276
 
Line 1916... Line 3277...
1916
 
3277
       db 'STEPPING:        ', 0
Line 1917... Line 3278...
1917
brandidlen:
3278
 
Line 1918... Line 3279...
1918
 
3279
end if
Line 1919... Line 3280...
1919
 
3280
 
Line 1920... Line 3281...
1920
 
3281
steplen:
Line 1921... Line 3282...
1921
oblom:
3282
 
Line 1922... Line 3283...
1922
 
3283
cache:
1923
if lang eq it
3284
 
1924
 
3285
    db 'L1(inst):     KB       -way set     -byte line size',0
Line 1925... Line -...
1925
                db 'CPUID non e disponibile'
-
 
1926
 
-
 
1927
else
-
 
1928
 
-
 
1929
                db 'SORRY, CPUID IS NOT AVAILABLE'
-
 
1930
 
-
 
1931
end if
-
 
1932
 
-
 
1933
 
3286
 
Line 1934... Line 3287...
1934
 
3287
cachelen:
Line 1935... Line 3288...
1935
oblomlen:
3288
 
Line 1936... Line 3289...
1936
 
3289
cache2:
Line 1937... Line 3290...
1937
other:
3290
 
Line 1938... Line 3291...
1938
 
3291
     db 'L1(data):     KB       -way set     -byte line size',0
Line 1939... Line -...
1939
if lang eq it
-
 
1940
 
3292
 
Line 1941... Line 3293...
1941
                db 'Questo vendor non e supportato'
3293
cache2len:
Line 1942... Line 3294...
1942
 
3294
 
Line 1943... Line -...
1943
else
-
 
1944
 
3295
 
Line 1945... Line 3296...
1945
                db 'SORRY, THIS VENDOR IS NOT SUPPORTED YET'
3296
cache3:
Line 1946... Line 3297...
1946
 
3297
 
Line -... Line 3298...
-
 
3298
    db 'L2:      KB            -way set     -byte line size',0
-
 
3299
 
-
 
3300
cache3len:
-
 
3301
 
-
 
3302
cache4:
-
 
3303
 
-
 
3304
   db 'L3:      KB            -way set     -byte line size',0
-
 
3305
 
-
 
3306
cache4len:
-
 
3307
 
-
 
3308
brandid:
-
 
3309
 
1947
end if
3310
    db 'Brand:', 0
Line 1948... Line 3311...
1948
 
3311
 
Line 1949... Line 3312...
1949
 
3312
brandidlen:
Line 1950... Line 3313...
1950
 
3313
 
Line 1951... Line 3314...
1951
otherlen:
3314
MMXs:
Line 1952... Line 3315...
1952
 
3315
 
Line 1953... Line -...
1953
 
-
 
1954
 
-
 
1955
cpuname:
3316
    db 'MMX:         ',0
Line 1956... Line -...
1956
 
-
 
1957
if lang eq it
-
 
1958
 
3317
 
Line 1959... Line 3318...
1959
                db 'Vendor CPU              '
3318
MMXslen:
Line 1960... Line 3319...
1960
 
3319
 
Line 2258... Line 3617...
2258
 
3617
 
Line 2259... Line 3618...
2259
;----------Intel
3618
;----------Intel
Line 2260... Line 3619...
2260
 
3619
 
Line 2261... Line 3620...
2261
P50:
3620
P50:
Line 2262... Line 3621...
2262
 
3621
 
Line 2263... Line 3622...
2263
db 'P5 A-step'
3622
db 'P5 A-step',0
Line 2264... Line 3623...
2264
 
3623
 
Line 2265... Line 3624...
2265
P50len:
3624
P50len:
Line 2266... Line 3625...
2266
 
3625
 
Line 2267... Line 3626...
2267
P5:
3626
P5:
Line 2268... Line 3627...
2268
 
3627
 
Line 2269... Line 3628...
2269
db 'P5'
3628
db 'P5',0
Line 2270... Line 3629...
2270
 
3629
 
Line 2271... Line 3630...
2271
P5len:
3630
P5len:
Line 2272... Line 3631...
2272
 
3631
 
Line 2273... Line 3632...
2273
P54T:
3632
P54T:
Line 2274... Line 3633...
2274
 
3633
 
Line 2275... Line 3634...
2275
db 'P24T Overdrive'
3634
db 'P24T Overdrive',0
Line 2276... Line 3635...
2276
 
3635
 
Line 2277... Line 3636...
2277
P54Tlen:
3636
P54Tlen:
Line 2278... Line 3637...
2278
 
3637
 
Line 2279... Line 3638...
2279
P54C:
3638
P54C:
Line 2280... Line 3639...
2280
 
3639
 
Line 2281... Line 3640...
2281
db 'P54C'
3640
db 'P54C',0
Line 2282... Line 3641...
2282
 
3641
 
Line 2283... Line 3642...
2283
P54Clen:
3642
P54Clen:
Line 2284... Line 3643...
2284
 
3643
 
Line 2285... Line 3644...
2285
P55C:
3644
P55C:
Line 2286... Line 3645...
2286
 
3645
 
Line 2287... Line 3646...
2287
db 'P55C (with MMX)'
3646
db 'P55C (with MMX)',0
Line 2288... Line 3647...
2288
 
3647
 
Line 2289... Line 3648...
2289
P55Clen:
3648
P55Clen:
Line 2290... Line 3649...
2290
 
3649
 
Line 2291... Line 3650...
2291
; ---
3650
; ---
Line 2292... Line 3651...
2292
 
3651
 
Line 2293... Line 3652...
2293
P60:
3652
P60:
Line 2294... Line 3653...
2294
 
3653
 
Line 2295... Line 3654...
2295
db 'Pentium Pro A-step'
3654
db 'Pentium Pro A-step',0
Line 2296... Line 3655...
2296
 
3655
 
Line 2297... Line 3656...
2297
P60len:
3656
P60len:
Line 2298... Line 3657...
2298
 
3657
 
Line 2299... Line 3658...
2299
P61:
3658
P61:
Line 2300... Line 3659...
2300
 
3659
 
Line 2301... Line 3660...
2301
db 'Pentium Pro'
3660
db 'Pentium Pro',0
Line 2302... Line 3661...
2302
 
3661
 
Line 2303... Line 3662...
2303
P61len:
3662
P61len:
Line 2304... Line 3663...
2304
 
3663
 
Line 2305... Line 3664...
2305
P63:
3664
P63:
Line 2306... Line 3665...
2306
 
3665
 
Line 2307... Line 3666...
2307
db 'Pentium II (Klamath)'
3666
db 'Pentium II (Klamath)',0
Line 2308... Line 3667...
2308
 
3667
 
Line 2309... Line 3668...
2309
P63len:
3668
P63len:
Line 2310... Line 3669...
2310
 
3669
 
Line 2311... Line 3670...
2311
P65:
3670
P65:
Line 2312... Line 3671...
2312
 
3671
 
Line 2313... Line 3672...
2313
db 'Pentium II (Deschutes)'
3672
db 'Pentium II (Deschutes)',0
Line 2314... Line 3673...
2314
 
3673
 
Line 2315... Line 3674...
2315
P65len:
3674
P65len:
Line 2316... Line 3675...
2316
 
3675
 
Line 2317... Line 3676...
2317
P66:
3676
P66:
Line 2318... Line 3677...
2318
 
3677
 
Line 2319... Line 3678...
2319
db 'Celeron (Medocino)'
3678
db 'Celeron (Medocino)',0
Line 2320... Line 3679...
2320
 
3679
 
Line 2321... Line 3680...
2321
P66len:
3680
P66len:
Line 2322... Line 3681...
2322
 
3681
 
Line 2323... Line 3682...
2323
P67:
3682
P67:
Line 2324... Line 3683...
2324
 
3683
 
Line 2325... Line 3684...
2325
db 'Pentium III (Katmai)'
3684
db 'Pentium III (Katmai)',0
Line 2326... Line 3685...
2326
 
3685
 
Line 2327... Line 3686...
2327
P67len:
3686
P67len:
Line 2328... Line 3687...
2328
 
3687
 
Line 2329... Line 3688...
2329
P68:
3688
P68:
Line 2330... Line 3689...
2330
 
3689
 
Line 2331... Line 3690...
2331
db 'Pentium III (Coppermine)'
3690
db 'Pentium III (Coppermine)',0
Line 2332... Line 3691...
2332
 
3691
 
Line 2333... Line 3692...
2333
P68len:
3692
P68len:
Line 2334... Line 3693...
2334
 
3693
 
Line 2335... Line 3694...
2335
P69:
3694
P69:
Line 2336... Line 3695...
2336
 
3695
 
Line 2337... Line 3696...
2337
db 'Pentium M (Banias)'
3696
db 'Pentium M (Banias)',0
Line 2338... Line 3697...
2338
 
3697
 
Line 2339... Line 3698...
2339
P69len:
3698
P69len:
Line 2340... Line 3699...
2340
 
3699
 
Line 2341... Line 3700...
2341
P6A:
3700
P6A:
Line 2342... Line 3701...
2342
 
3701
 
Line 2343... Line 3702...
2343
db 'Pentium III Xeon (Cascades)'
3702
db 'Pentium III Xeon (Cascades)',0
Line 2344... Line 3703...
2344
 
3703
 
Line 2345... Line 3704...
2345
P6Alen:
3704
P6Alen:
Line 2346... Line 3705...
2346
 
3705
 
Line 2347... Line 3706...
2347
P6B:
3706
P6B:
Line 2348... Line 3707...
2348
 
3707
 
Line 2349... Line 3708...
2349
db 'Pentium III (Tualatin)'
3708
db 'Pentium III (Tualatin)',0
Line 2350... Line 3709...
2350
 
3709
 
Line 2351... Line 3710...
2351
P6Blen:
3710
P6Blen:
Line 2352... Line 3711...
2352
 
3711
 
Line 2353... Line 3712...
2353
P6D:
3712
P6D:
Line 2354... Line 3713...
2354
 
3713
 
Line 2355... Line 3714...
2355
db 'Pentium M (Dothan)'
3714
db 'Pentium M (Dothan)',0
Line 2356... Line 3715...
2356
 
3715
 
Line 2357... Line 3716...
2357
P6Dlen:
3716
P6Dlen:
Line 2358... Line 3717...
2358
 
3717
 
Line -... Line 3718...
-
 
3718
P6E:
-
 
3719
 
-
 
3720
db 'Pentium M (Yonah)/ Core',0
-
 
3721
 
-
 
3722
P6Elen:
-
 
3723
 
-
 
3724
P6F:
-
 
3725
 
-
 
3726
db 'Pentium D (Conroe)/ Core 2 (Kentsfield)',0
-
 
3727
 
-
 
3728
P6Flen:
-
 
3729
 
-
 
3730
;---
-
 
3731
 
-
 
3732
PS0:
-
 
3733
 
-
 
3734
db 'Itanium (IA-64)',0
-
 
3735
 
-
 
3736
PS0len:
-
 
3737
 
-
 
3738
;------------
-
 
3739
 
-
 
3740
PF0:
-
 
3741
 
-
 
3742
db 'Pentium 4 (Willamete)',0
-
 
3743
 
-
 
3744
PF0len:
-
 
3745
 
-
 
3746
PF2:
-
 
3747
 
-
 
3748
db 'Pentium 4 (Northwood)',0
-
 
3749
 
-
 
3750
PF2len:
-
 
3751
 
-
 
3752
PF3:
-
 
3753
 
-
 
3754
db 'Pentium 4 (Prescott)',0
-
 
3755
 
-
 
3756
PF3len:
-
 
3757
 
-
 
3758
PF5:
-
 
3759
 
-
 
3760
db 'Pentium 4 (Tejas)',0
-
 
3761
 
-
 
3762
PF5len:
-
 
3763
 
-
 
3764
PF6:
-
 
3765
 
-
 
3766
db 'Pentium 4 (Presler)',0
-
 
3767
 
-
 
3768
PF6len:
-
 
3769
 
-
 
3770
;----------------Intel Celerons
-
 
3771
 
-
 
3772
P65c:
-
 
3773
 
-
 
3774
db 'Celeron (Covington)',0
-
 
3775
 
-
 
3776
P65clen:
-
 
3777
 
-
 
3778
P68c:
-
 
3779
 
-
 
3780
db 'Celeron (Coppermine)',0
-
 
3781
 
-
 
3782
P68clen:
-
 
3783
 
-
 
3784
P6Bc:
-
 
3785
 
-
 
3786
db 'Celeron (Tualatin)',0
-
 
3787
 
-
 
3788
P6Bclen:
-
 
3789
 
-
 
3790
PF0c:
-
 
3791
 
-
 
3792
db 'Celeron (Willamete)',0
-
 
3793
 
-
 
3794
PF0clen:
-
 
3795
 
-
 
3796
PF2c:
-
 
3797
 
-
 
3798
db 'Celeron (Northwood)',0
-
 
3799
 
-
 
3800
PF2clen:
-
 
3801
 
-
 
3802
PF3c:
-
 
3803
 
-
 
3804
db 'Celeron (Prescott)',0
-
 
3805
 
2359
P6E:
3806
PF3clen:
Line 2360... Line 3807...
2360
 
3807
 
Line 2361... Line 3808...
2361
db 'Pentium M (Yonah)/ Core'
3808
PF5c:
Line 2499... Line 3946...
2499
Ata     db 'AthlonXP (Barton)',0
3946
Ata	db 'AthlonXP (Barton)',0
Line 2500... Line 3947...
2500
 
3947
 
Line 2501... Line 3948...
2501
Atat    db 'AthlonXP (Thorton)',0
3948
Atat	db 'AthlonXP (Thorton)',0
-
 
3949
 
-
 
3950
;-------------------
-
 
3951
AthlonKuma:
-
 
3952
 
-
 
3953
db 'AMD Athlon 7750 Black Edition',0
-
 
3954
 
-
 
3955
AthlonKumalen: 
-
 
3956
 
-
 
3957
AB23:
-
 
3958
 
-
 
3959
db 'Opteron 2300-series',0
-
 
3960
 
-
 
3961
AB23len:
-
 
3962
 
-
 
3963
AB83:
-
 
3964
 
-
 
3965
db 'Opteron 8300-series',0
-
 
3966
 
-
 
3967
AB83len:
-
 
3968
 
-
 
3969
AB9:
-
 
3970
db 'Phenom X4',0
-
 
3971
 
-
 
3972
AB9len:
-
 
3973
 
-
 
3974
AB8right2:
-
 
3975
 
-
 
3976
db 'Phenom X3',0
-
 
3977
 
-
 
3978
AB8right2len:
-
 
3979
 
-
 
3980
AB4:
-
 
3981
 
-
 
3982
db 'Athlon X2',0
-
 
3983
 
-
 
3984
AB4len:
-
 
3985
 
-
 
3986
AB1:
-
 
3987
 
-
 
3988
db 'Sempron',0
-
 
3989
 
-
 
3990
AB1len:
-
 
3991
 
-
 
3992
ABC2:
-
 
3993
 
-
 
3994
db 'Opteron (Shanghai) 2387',0
-
 
3995
 
-
 
3996
ABC2len:
-
 
3997
 
-
 
3998
AB6:
-
 
3999
 
-
 
4000
db 'Opteron (Magny-Cours)',0
-
 
4001
 
-
 
4002
AB6len:
-
 
4003
 
-
 
4004
ABC3:
-
 
4005
 
-
 
4006
db 'Opteron (Shanghai) 8300 series',0
-
 
4007
 
-
 
4008
ABC3len:
-
 
4009
 
-
 
4010
ABM2:
-
 
4011
 
-
 
4012
db 'Turion II ',0
-
 
4013
 
-
 
4014
ABM2len:
Line 2502... Line 4015...
2502
 
4015
 
Line 2503... Line 4016...
2503
;-------------------
4016
;---
Line 2504... Line 4017...
2504
 
4017
 
Line 2505... Line 4018...
2505
AF1:
4018
AF1:
Line 2506... Line 4019...
2506
 
4019
 
Line 2507... Line 4020...
2507
db 'Dual-core Opteron'
4020
db 'Dual-core Opteron',0
Line 2508... Line 4021...
2508
 
4021
 
Line 2509... Line 4022...
2509
AF1len:
4022
AF1len:
Line 2510... Line 4023...
2510
 
4023
 
Line 2511... Line 4024...
2511
AF3:
4024
AF3:
Line 2512... Line 4025...
2512
 
4025
 
Line 2513... Line 4026...
2513
db 'Athlon 64 (Toledo)'
4026
db 'Athlon 64 (Toledo)',0
Line 2514... Line -...
2514
 
-
 
2515
AF3len:
4027
 
Line 2516... Line 4028...
2516
 
4028
AF3len:
Line 2517... Line 4029...
2517
AF4:
4029
 
Line 2518... Line -...
2518
 
-
 
2519
db 'Athlon 64 (ClawHammer)'
4030
AF4:
Line 2520... Line 4031...
2520
 
4031
 
Line 2521... Line 4032...
2521
AF4len:
4032
db 'Athlon 64 (ClawHammer)',0
Line 2522... Line -...
2522
 
-
 
2523
AF5:
4033
 
Line 2524... Line 4034...
2524
 
4034
AF4len:
Line 2525... Line 4035...
2525
db 'Opteron/Athlon 64 FX (SledgeHammer)'
4035
 
Line 2526... Line -...
2526
 
-
 
2527
AF5len:
4036
AF5:
Line 2528... Line 4037...
2528
 
4037
 
Line 2529... Line 4038...
2529
 
4038
db 'Opteron/Athlon 64 FX (SledgeHammer)',0
Line 2530... Line -...
2530
 
-
 
2531
AFC:
4039
 
Line 2532... Line 4040...
2532
 
4040
AF5len:
Line 2533... Line 4041...
2533
db 'Athlon 64 (Newcastle)'
4041
 
Line 2534... Line 4042...
2534
 
4042
 
Line 2535... Line 4043...
2535
AFClen:
4043
AFC:
Line 2536... Line 4044...
2536
 
4044
 
Line 2537... Line 4045...
2537
 
4045
db 'Athlon 64 (Newcastle)',0
Line 2538... Line 4046...
2538
 
4046
 
Line 2539... Line 4047...
2539
AFF:
4047
AFClen:
Line 2540... Line 4048...
2540
 
4048
 
Line 2541... Line 4049...
2541
db 'Athlon 64 (Winchester)'
4049
 
Line 2542... Line 4050...
2542
 
4050
AFF:
Line 2543... Line 4051...
2543
AFFlen:
4051
 
Line 2544... Line 4052...
2544
 
4052
db 'Athlon 64 (Winchester)',0
Line 2545... Line 4053...
2545
 
4053
 
Line 2546... Line 4054...
2546
 
4054
AFFlen:
Line 2547... Line 4055...
2547
AFS:
4055
 
Line 2548... Line 4056...
2548
 
4056
 
Line 2549... Line 4057...
2549
db 'Athlon 64 (San Diego)'
4057
AFS:
Line 2550... Line 4058...
2550
 
4058
 
Line 2551... Line 4059...
2551
AFSlen:
4059
db 'Athlon 64 (San Diego)',0
Line 2552... Line 4060...
2552
 
4060
 
Line 2553... Line 4061...
2553
 
4061
AFSlen:
Line 2554... Line 4062...
2554
 
4062
 
Line 2555... Line 4063...
2555
AFV:
4063
 
Line 2556... Line 4064...
2556
 
4064
AFV:
Line 2557... Line 4065...
2557
db 'Athlon 64 (Venice)'
4065
 
Line 2558... Line 4066...
2558
 
4066
db 'Athlon 64 (Venice)',0
Line 2559... Line 4067...
2559
AFVlen:
4067
 
Line 2560... Line 4068...
2560
 
4068
AFVlen:
Line 2561... Line 4069...
2561
 
4069
 
Line 2562... Line 4070...
2562
 
4070
 
Line 2563... Line 4071...
2563
AFCs:
4071
AFCs:
Line 2564... Line 4072...
2564
 
4072
 
Line 2565... Line 4073...
2565
db 'Sempron (Paris)'
4073
db 'Sempron (Paris)',0
Line 2566... Line 4074...
2566
 
4074
 
Line 2567... Line 4075...
2567
AFCslen:
4075
AFCslen:
Line 2568... Line 4076...
2568
 
4076
 
Line 2569... Line 4077...
2569
 
4077
 
Line 2570... Line 4078...
2570
 
4078
 
Line 2571... Line 4079...
2571
AFCsp:
4079
AFCsp:
Line 2572... Line 4080...
2572
 
4080
 
Line 2573... Line 4081...
2573
db 'Sempron (Palermo)'
4081
db 'Sempron (Palermo)',0
Line 2574... Line 4082...
2574
 
4082
 
Line 2575... Line 4083...
2575
AFCsplen:
4083
AFCsplen:
Line 2576... Line 4084...
2576
 
4084
 
Line 2577... Line 4085...
2577
 
4085
 
Line 2578... Line 4086...
2578
 
4086
 
Line 2579... Line 4087...
2579
;---------Cyrix
4087
;---------Cyrix
Line 2580... Line 4088...
2580
 
4088
 
Line 2581... Line 4089...
2581
C52:
4089
C52:
Line 2582... Line 4090...
2582
 
4090
 
Line 2583... Line 4091...
2583
db '6x86 M1'
4091
db '6x86 M1',0
Line 2584... Line 4092...
2584
 
4092
 
Line 2585... Line 4093...
2585
C52len:
4093
C52len:
Line 2586... Line 4094...
2586
 
4094
 
Line 2587... Line -...
2587
C54:
-
 
2588
 
-
 
2589
db 'MediaGX'
-
 
2590
 
-
 
2591
C54len:
-
 
2592
 
-
 
2593
C60:
-
 
2594
 
-
 
2595
db '6x86MX M2'
-
 
2596
 
-
 
2597
C60len:
-
 
2598
 
-
 
2599
C65:
-
 
2600
 
-
 
2601
db 'C3 (Cyrix M2)' ;?
-
 
2602
 
-
 
2603
C65len:
-
 
2604
 
-
 
2605
;--------IDT
-
 
2606
 
4095
C54:
Line 2607... Line 4096...
2607
V54:
4096
 
Line 2608... Line 4097...
2608
 
4097
db 'MediaGX',0
Line 2711... Line 4200...
2711
coppercoeff     db       50, 30, 40, 20, 55, 35,  45, 25,  35, 70, 80, 60, 20, 75, 15, 65, 90, 110, 120, 20, 95, 115, 85, 25, 35, 70,  80, 100,  20, 75,  15, 105
4200
coppercoeff	db	 50, 30, 40, 20, 55, 35,  45, 25,  35, 70, 80, 60, 20, 75, 15, 65, 90, 110, 120, 20, 95, 115, 85, 25, 35, 70,  80, 100,  20, 75,  15, 105
Line 2712... Line 4201...
2712
 
4201
 
Line 2713... Line -...
2713
tualatcoeff     db      120, 35, 35, 40, 55, 35, 115, 35, 160, 70, 80, 60, 40, 75, 35, 65, 90, 110,  35, 35, 95,  35, 85, 35, 35, 35, 130, 100, 140, 35, 150, 105
-
 
2714
 
4202
tualatcoeff	db	120, 35, 35, 40, 55, 35, 115, 35, 160, 70, 80, 60, 40, 75, 35, 65, 90, 110,  35, 35, 95,  35, 85, 35, 35, 35, 130, 100, 140, 35, 150, 105
2715
 
-
 
2716
 
4203
 
Line 2717... Line 4204...
2717
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4204
 
Line 2718... Line 4205...
2718
 
4205
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 2731... Line 4218...
2731
rb 201*49*3+8      ; image resolution (bits to reserve)
4218
rb 201*49*3+8	   ; image resolution (bits to reserve)
Line 2732... Line 4219...
2732
 
4219
 
2733
img_area2:         ; image is going to be unpacked to here
4220
img_area2:	   ; image is going to be unpacked to here
Line -... Line 4221...
-
 
4221
rb 93*24*3+8	   ; image resolution (bits to reserve)
-
 
4222
 
-
 
4223
img_area3:	   ; image is going to be unpacked to here
-
 
4224
rb 93*24*3+8	   ; image resolution (bits to reserve)
-
 
4225
 
2734
rb 93*24*3+8       ; image resolution (bits to reserve)
4226
gif_hash_area:
Line -... Line 4227...
-
 
4227
rd 4096+1	   ;hash area size for unpacking gif
-
 
4228
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
4229
 
-
 
4230
system_dir_ProcLib	db '/sys/lib/proc_lib.obj',0
-
 
4231
 
-
 
4232
err_message_found_lib2	db 'proc_lib.obj - Not found!',0
-
 
4233
 
-
 
4234
err_message_import2	db 'proc_lib.obj - Wrong import!',0
-
 
4235
 
-
 
4236
head_f_i:
-
 
4237
head_f_l	db 'error',0
-
 
4238
;---------------------------------------------------------------------
-
 
4239
l_libs_start:
-
 
4240
 
-
 
4241
library02  l_libs system_dir_ProcLib+9, path, library_path, system_dir_ProcLib, \
-
 
4242
err_message_found_lib2, head_f_l, ProcLib_import, err_message_import2, head_f_i
-
 
4243
 
-
 
4244
end_l_libs:
-
 
4245
;---------------------------------------------------------------------
-
 
4246
align 4
-
 
4247
ProcLib_import:
-
 
4248
OpenDialog_Init 	dd aOpenDialog_Init
-
 
4249
OpenDialog_Start	dd aOpenDialog_Start
-
 
4250
;OpenDialog__Version    dd aOpenDialog_Version
-
 
4251
	dd	0
-
 
4252
	dd	0
-
 
4253
aOpenDialog_Init	db 'OpenDialog_init',0
-
 
4254
aOpenDialog_Start	db 'OpenDialog_start',0
-
 
4255
;aOpenDialog_Version    db 'Version_OpenDialog',0
-
 
4256
;---------------------------------------------------------------------
-
 
4257
align 4
-
 
4258
OpenDialog_data:
-
 
4259
.type			dd 0
-
 
4260
.procinfo		dd Proc_Info	;+4
-
 
4261
.com_area_name		dd communication_area_name	;+8
-
 
4262
.com_area		dd 0	;+12
-
 
4263
.opendir_pach		dd temp_dir_pach	;+16
-
 
4264
.dir_default_pach	dd communication_area_default_pach	;+20
-
 
4265
.start_path		dd open_dialog_path	;+24
-
 
4266
.draw_window		dd draw_window	;+28
-
 
4267
.status 		dd 0	;+32
-
 
4268
.openfile_pach		dd file_name	;+36
-
 
4269
.filename_area		dd filename_area	;+40
-
 
4270
.filter_area		dd Filter
-
 
4271
.x:
-
 
4272
.x_size 		dw 420 ;+48 ; Window X size
-
 
4273
.x_start		dw 10 ;+50 ; Window X position
-
 
4274
.y:
-
 
4275
.y_size 		dw 320 ;+52 ; Window y size
-
 
4276
.y_start		dw 10 ;+54 ; Window Y position
-
 
4277
 
-
 
4278
communication_area_name:
-
 
4279
	db 'FFFFFFFF_open_dialog',0
-
 
4280
open_dialog_path:
-
 
4281
	db '/sys/File Managers/opendial',0
-
 
4282
communication_area_default_pach:
-
 
4283
	db '/sys',0
-
 
4284
Filter:
-
 
4285
dd	Filter.end - Filter.1
-
 
4286
.1:
-
 
4287
db	'TXT',0
-
 
4288
db	'LOG',0
-
 
4289
.end:
-
 
4290
dd	0
-
 
4291
 
-
 
4292
file_default_path:
-
 
4293
	db '/sys/'
-
 
4294
start_temp_file_name:
-
 
4295
	db 'CPUID.txt',0
-
 
4296
 
-
 
4297
;---------------------------------------------------------------------
-
 
4298
align	4
-
 
4299
fileinfo:
-
 
4300
.subfunction	dd 2
-
 
4301
.Offset 	dd 0
-
 
4302
.Offset_1	dd 0
-
 
4303
.size		dd 4096
-
 
4304
.return 	dd 0
-
 
4305
		db 0
-
 
4306
.name:		dd file_name
-
 
4307
 
-
 
4308
store_text_area_start	dd ?
-
 
4309
store_text_area_end	dd ?
-
 
4310
store_text_size 	dd ?
-
 
4311
 
-
 
4312
;---------------------------------------------------------------------
-
 
4313
library_path:
-
 
4314
	rb 4096
-
 
4315
;---------------------------------------------------------------------
-
 
4316
path:
-
 
4317
	rb 4096
-
 
4318
;---------------------------------------------------------------------
-
 
4319
temp_dir_pach:
-
 
4320
	rb 4096
-
 
4321
;---------------------------------------------------------------------
-
 
4322
file_name:
-
 
4323
	rb 4096
-
 
4324
;---------------------------------------------------------------------
-
 
4325
file_name_1:
-
 
4326
	rb 4096
-
 
4327
;---------------------------------------------------------------------
-
 
4328
filename_area:
-
 
4329
	rb 256
-
 
4330
;---------------------------------------------------------------------
-
 
4331
	rb 4096
2735
 
4332
stacktop:
Line 2736... Line 4333...
2736
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4333
;---------------------------------------------------------------------
Line 2737... Line 4334...
2737
 
4334
Proc_Info	process_information
Line 2751... Line 4348...
2751
 
4348
 
Line 2752... Line 4349...
2752
 
4349
 
Line 2753... Line 4350...
2753
 
4350
 
Line 2754... Line 4351...
2754
IncludeUGlobals
4351
IncludeUGlobals
Line 2779... Line 4376...
2779
 
4376
 
Line 2780... Line 4377...
2780
multa dd ?
4377
multa dd ?
Line 2781... Line -...
2781
 
-
 
2782
multb dd ?
-
 
2783
 
4378
 
Line 2784... Line 4379...
2784
 
4379
multb dd ?
Line 2785... Line 4380...
2785
 
4380
 
Line 2795... Line 4390...
2795
 
4390
 
Line 2796... Line 4391...
2796
micron dd ?
4391
micron dd ?
Line -... Line 4392...
-
 
4392
 
Line -... Line 4393...
-
 
4393
brand dd ?
Line 2797... Line 4394...
2797
 
4394
 
Line 2798... Line 4395...
2798
brand dd ?
4395
newpc  dd ?
Line 2815... Line 4412...
2815
 
4412
 
Line 2816... Line 4413...
2816
freqsel db ?
4413
freqsel db ?
Line -... Line 4414...
-
 
4414
 
-
 
4415
sse3sup db ?
-
 
4416
 
-
 
4417
sse41sup dd ?
Line 2817... Line 4418...
2817
 
4418
sse42sup dd ?
Line 2818... Line 4419...
2818
sse3sup db ?
4419
sse5sup dd ?
Line 2845... Line 4446...
2845
 
4446
 
Line 2846... Line 4447...
2846
wayl3 dd ?
4447
wayl3 dd ?
Line 2847... Line -...
2847
 
-
 
2848
linel3 dd ?
-
 
2849
 
-
 
2850
 
-
 
2851
 
-
 
2852
;number_of_log_cpus dd ?
-
 
2853
 
4448
 
Line -... Line 4449...
-
 
4449
linel3 dd ?
Line -... Line 4450...
-
 
4450
 
Line 2854... Line 4451...
2854
 
4451
che db ? ; numbers of calls for Intel caches detection
Line 2855... Line 4452...
2855
 
4452
 
Line 2856... Line 4453...
2856
che db ? ; numbers of calls for Intel caches detection
4453
cname dd ? 
2857
 
4454
 
Line 2858... Line 4455...
2858
 
4455
codeN dd ? 
Line 2872... Line 4469...
2872
  thread2_stack_area rb 64
4469
  thread2_stack_area rb 64
Line 2873... Line 4470...
2873
 
4470
 
Line 2874... Line 4471...
2874
  thread2_esp = $
4471
  thread2_esp = $
2875
 
4472
 
-
 
4473
U_END:
-
 
4474