2006-11-28 16:54:36 +01:00
|
|
|
;//////////////////////////////////////////////
|
|
|
|
;Decoding Brand ID for Intel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
decodebrand:
|
|
|
|
|
|
|
|
|
|
|
|
cmp dword[smallvendor], 'cAMD'
|
|
|
|
jz amd_br
|
|
|
|
cmp dword[smallvendor], 'ntel'
|
|
|
|
jz intel_br
|
|
|
|
jmp Bi00 ; if not AMD or Intel
|
|
|
|
|
|
|
|
amd_br: ;;;;;;;;;;;;;;;;;;;;; amd brand
|
|
|
|
|
|
|
|
xor eax,eax
|
|
|
|
inc eax
|
|
|
|
cpuid
|
|
|
|
|
|
|
|
cnnn0:
|
|
|
|
cmp bl, 00h
|
|
|
|
ja rr
|
|
|
|
je cnnn1
|
|
|
|
|
|
|
|
rr:
|
|
|
|
mov byte [brand], bl ;
|
2007-05-10 15:48:35 +02:00
|
|
|
Text 60,250,0x00000000,abrand00, abrand00len-abrand00
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
;jmp comppp
|
|
|
|
|
|
|
|
cnnn1:
|
|
|
|
|
2007-02-04 12:05:08 +01:00
|
|
|
mov eax, 0x80000001 ; CPUID ext. function 0x80000001
|
2006-11-28 16:54:36 +01:00
|
|
|
cpuid
|
|
|
|
|
|
|
|
cmp ebx, 0
|
|
|
|
je Bi00
|
|
|
|
mov word [brand], bx ;
|
|
|
|
|
|
|
|
comppp:
|
|
|
|
cmp [brand], 400h
|
|
|
|
jl res1
|
|
|
|
cmp [brand], 500h
|
|
|
|
jl res2
|
|
|
|
jae res3
|
|
|
|
|
|
|
|
|
|
|
|
res1:
|
2007-05-10 15:48:35 +02:00
|
|
|
Text 60,250,0x00000000,abrand0, abrand0len-abrand0
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
res2:
|
2007-05-10 15:48:35 +02:00
|
|
|
Text 60,250,0x00000000,abrand1, abrand1len-abrand1
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
res3:
|
2007-05-10 15:48:35 +02:00
|
|
|
Text 60,250,0x00000000,abrand2, abrand2len-abrand2
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
2007-02-04 12:05:08 +01:00
|
|
|
;;;;;;;;;;;;;;;;;;;;; intel brand
|
2006-11-28 16:54:36 +01:00
|
|
|
intel_br:
|
|
|
|
xor eax,eax
|
|
|
|
inc eax
|
|
|
|
cpuid
|
|
|
|
cmp0:
|
|
|
|
cmp bl, 00h
|
|
|
|
je Bi00
|
|
|
|
|
|
|
|
cmp1:
|
|
|
|
cmp bl, 01h
|
|
|
|
je Bi01
|
|
|
|
|
|
|
|
cmp2:
|
|
|
|
cmp bl, 02h
|
|
|
|
je Bi02
|
|
|
|
|
|
|
|
cmp3:
|
|
|
|
cmp bl, 03h
|
|
|
|
je Bi03
|
|
|
|
|
|
|
|
cmp4:
|
|
|
|
cmp bl, 04h
|
|
|
|
je Bi04
|
|
|
|
|
|
|
|
cmp6:
|
|
|
|
cmp bl, 06h
|
|
|
|
je Bi06
|
|
|
|
|
|
|
|
cmp7:
|
|
|
|
cmp bl, 07h
|
|
|
|
je Bi07
|
|
|
|
|
|
|
|
cmp8:
|
|
|
|
cmp bl, 08h
|
|
|
|
je Bi08
|
|
|
|
|
|
|
|
cmp9:
|
|
|
|
cmp bl, 09h
|
|
|
|
je Bi09
|
|
|
|
|
|
|
|
cmpA:
|
|
|
|
cmp bl, 0Ah
|
|
|
|
je Bi0A
|
|
|
|
|
|
|
|
cmpB:
|
|
|
|
cmp bl, 0Bh
|
|
|
|
je Bi0B
|
|
|
|
|
|
|
|
cmpC:
|
|
|
|
cmp bl, 0Ch
|
|
|
|
je Bi0C
|
|
|
|
|
|
|
|
cmpE:
|
|
|
|
cmp bl, 0Eh
|
|
|
|
je Bi0E
|
|
|
|
|
|
|
|
cmpF:
|
|
|
|
cmp bl, 0Fh
|
|
|
|
je Bi0F
|
|
|
|
|
|
|
|
cmp11:
|
|
|
|
cmp bl, 11h
|
|
|
|
je Bi11
|
|
|
|
|
|
|
|
cmp12:
|
|
|
|
cmp bl, 12h
|
|
|
|
je Bi12
|
|
|
|
|
|
|
|
cmp13:
|
|
|
|
cmp bl, 13h
|
|
|
|
je Bi13
|
|
|
|
|
|
|
|
cmp14:
|
|
|
|
cmp bl, 14h
|
|
|
|
je Bi14
|
|
|
|
|
|
|
|
cmp15:
|
|
|
|
cmp bl, 15h
|
|
|
|
je Bi15
|
|
|
|
|
|
|
|
cmp16:
|
|
|
|
cmp bl, 16h
|
|
|
|
je Bi16
|
|
|
|
|
|
|
|
cmp17:
|
|
|
|
cmp bl, 17h
|
|
|
|
je Bi17
|
|
|
|
|
|
|
|
jne Bi00
|
|
|
|
|
|
|
|
;------------------
|
|
|
|
Bi00:
|
|
|
|
mov byte [brand], bl ;00h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0, brand0len-brand0
|
|
|
|
;Number 270,180,1*256,2,dword [brand],0x000000 was in v. 1.11
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi01:
|
|
|
|
mov [brand], 01h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand01, brand01len-brand01
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi02:
|
|
|
|
mov [brand], 02h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand02, brand02len-brand02
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi03:
|
|
|
|
mov [brand], 03h
|
|
|
|
|
|
|
|
cmp [m], 8
|
|
|
|
je E3
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand03, brand03len-brand03
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
E3:
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand03d, brand03dlen-brand03d
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi04:
|
|
|
|
mov [brand], 04h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand04, brand04len-brand04
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi06:
|
|
|
|
mov [brand], 06h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand06, brand06len-brand06
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi07:
|
|
|
|
mov [brand], 07h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand07, brand07len-brand07
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi08:
|
|
|
|
mov [brand], 08h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand08, brand08len-brand08
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi09:
|
|
|
|
mov [brand], 09h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand09, brand09len-brand09
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi0A:
|
|
|
|
mov [brand], 0Ah
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0A, brand0Alen-brand0A
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi0B:
|
|
|
|
mov [brand], 0Bh
|
|
|
|
|
|
|
|
cmp [m], 13
|
|
|
|
jl Eb
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0B, brand0Blen-brand0B
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
Eb:
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0Bd, brand0Bdlen-brand0Bd
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi0C:
|
|
|
|
mov [brand], 0Ch
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0C, brand0Clen-brand0C
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi0E:
|
|
|
|
mov [brand], 0Eh
|
|
|
|
|
|
|
|
cmp [m], 13
|
|
|
|
jl Ed
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0E, brand0Elen-brand0E
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
Ed:
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0Ed, brand0Edlen-brand0Ed
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi0F:
|
|
|
|
mov [brand], 0Fh
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand0F, brand0Flen-brand0F
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi11:
|
|
|
|
mov [brand], 11h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand11, brand11len-brand11
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi12:
|
|
|
|
mov [brand], 12h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand12, brand12len-brand12
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi13:
|
|
|
|
mov [brand], 13h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand13, brand13len-brand13
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi14:
|
|
|
|
mov [brand], 14h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand14, brand14len-brand14
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi15:
|
|
|
|
mov [brand], 15h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand15, brand15len-brand15
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi16:
|
|
|
|
mov [brand], 16h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand16, brand16len-brand16
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
Bi17:
|
|
|
|
mov [brand], 17h
|
2007-04-05 03:51:58 +02:00
|
|
|
Text 60,250,0x00000000,brand17, brand17len-brand17
|
2006-11-28 16:54:36 +01:00
|
|
|
jmp B000
|
|
|
|
|
|
|
|
B000:
|
|
|
|
|
2007-02-04 12:05:08 +01:00
|
|
|
ret
|