annotate stru11.h @ 1041:c5498375832a

m
author Gloval
date Thu, 23 May 2013 08:26:51 +0400
parents c45d51b3f4f4
children 0aeac0b9ca30
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents: 0
diff changeset
4 #include "mm7_data.h"
0
Ritor1
parents:
diff changeset
5 /* 128 */
Ritor1
parents:
diff changeset
6 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
7 struct stru11
Ritor1
parents:
diff changeset
8 {
Ritor1
parents:
diff changeset
9 //----- (00438526) --------------------------------------------------------
Ritor1
parents:
diff changeset
10 stru11()
Ritor1
parents:
diff changeset
11 {
Ritor1
parents:
diff changeset
12 stru11 *v1; // esi@1
Ritor1
parents:
diff changeset
13 signed int v2; // eax@1
Ritor1
parents:
diff changeset
14 char *v3; // edx@1
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16 v1 = this;
Ritor1
parents:
diff changeset
17 v2 = 0;
Ritor1
parents:
diff changeset
18 this->cpuid_00000000_eax_numops = 0;
Ritor1
parents:
diff changeset
19 this->cpuid_00000001_eax = 0;
Ritor1
parents:
diff changeset
20 this->cpuid_00000001_edx = 0;
Ritor1
parents:
diff changeset
21 this->field_38 = 0;
Ritor1
parents:
diff changeset
22 this->field_3C = 0;
Ritor1
parents:
diff changeset
23 this->cpuid_80000000_edx = 0;
Ritor1
parents:
diff changeset
24 this->cpuid_80000001_eax = 0;
Ritor1
parents:
diff changeset
25 this->cpuid_80000001_edx = 0;
Ritor1
parents:
diff changeset
26 this->cpuid_80000005_ebx = 0;
Ritor1
parents:
diff changeset
27 this->cpuid_80000005_ecx = 0;
Ritor1
parents:
diff changeset
28 this->cpuid_80000005_edx = 0;
Ritor1
parents:
diff changeset
29 this->cpuid_80000006_ecx = 0;
Ritor1
parents:
diff changeset
30 this->field_AC = 0;
Ritor1
parents:
diff changeset
31 this->uProcessorManufacturer = 0;
Ritor1
parents:
diff changeset
32 LOBYTE(this->cpuid_80000002_registers2[0]) = 0;
Ritor1
parents:
diff changeset
33 v3 = (char *)&this->cpuid_00000002_eax;
Ritor1
parents:
diff changeset
34 do
Ritor1
parents:
diff changeset
35 {
Ritor1
parents:
diff changeset
36 if ( v2 < 3 )
Ritor1
parents:
diff changeset
37 *((int *)v3 - 9) = 0;
Ritor1
parents:
diff changeset
38 if ( v2 < 4 )
Ritor1
parents:
diff changeset
39 *(int *)v3 = 0;
Ritor1
parents:
diff changeset
40 if ( v2 < 12 )
Ritor1
parents:
diff changeset
41 *((int *)v3 + 17) = 0;
Ritor1
parents:
diff changeset
42 if ( v2 < 13 )
Ritor1
parents:
diff changeset
43 this->pCPUString[v2] = 0;
Ritor1
parents:
diff changeset
44 if ( v2 < 30 )
Ritor1
parents:
diff changeset
45 *((char *)this->field_40 + v2) = 0;
Ritor1
parents:
diff changeset
46 *((char *)&this->cpuid_80000002_registers2[0] + v2++ + 1) = 0;
Ritor1
parents:
diff changeset
47 v3 += 4;
Ritor1
parents:
diff changeset
48 }
Ritor1
parents:
diff changeset
49 while ( v2 < 48 );
Ritor1
parents:
diff changeset
50 CheckCPU();
Ritor1
parents:
diff changeset
51 }
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53 void CheckCPU();
Ritor1
parents:
diff changeset
54 void RunCPUID();
Ritor1
parents:
diff changeset
55 void RunCPUID_op1();
Ritor1
parents:
diff changeset
56 void RunCPUID_op2();
Ritor1
parents:
diff changeset
57 void RunCPUID_ext2_3_4();
Ritor1
parents:
diff changeset
58
Ritor1
parents:
diff changeset
59 int cpuid_00000000_eax_numops;
Ritor1
parents:
diff changeset
60 int cpuid_00000000_ebx_vendorstr1;
Ritor1
parents:
diff changeset
61 int cpuid_00000000_edx_vendorstr2;
Ritor1
parents:
diff changeset
62 int cpuid_00000000_ecx_vendorstr3;
Ritor1
parents:
diff changeset
63 char pCPUString[16];
Ritor1
parents:
diff changeset
64 int cpuid_00000001_eax;
Ritor1
parents:
diff changeset
65 int cpuid_00000001_edx;
Ritor1
parents:
diff changeset
66 int cpuid_00000002_eax;
Ritor1
parents:
diff changeset
67 int cpuid_00000002_ebx;
Ritor1
parents:
diff changeset
68 int cpuid_00000002_ecx;
Ritor1
parents:
diff changeset
69 int cpuid_00000002_edx;
Ritor1
parents:
diff changeset
70 int field_38;
Ritor1
parents:
diff changeset
71 int field_3C;
Ritor1
parents:
diff changeset
72 int field_40[8];
Ritor1
parents:
diff changeset
73 int cpuid_80000000_edx;
Ritor1
parents:
diff changeset
74 int cpuid_80000001_eax;
Ritor1
parents:
diff changeset
75 int cpuid_80000001_edx;
Ritor1
parents:
diff changeset
76 int cpuid_80000002_registers[4];
Ritor1
parents:
diff changeset
77 int cpuid_80000003_registers[4];
Ritor1
parents:
diff changeset
78 int cpuid_80000004_registers[4];
Ritor1
parents:
diff changeset
79 int cpuid_80000005_ebx;
Ritor1
parents:
diff changeset
80 int cpuid_80000005_ecx;
Ritor1
parents:
diff changeset
81 int cpuid_80000005_edx;
Ritor1
parents:
diff changeset
82 int cpuid_80000006_ecx;
Ritor1
parents:
diff changeset
83 int field_AC;
Ritor1
parents:
diff changeset
84 int uProcessorManufacturer;
Ritor1
parents:
diff changeset
85 int cpuid_80000002_registers2[4];
Ritor1
parents:
diff changeset
86 int cpuid_80000003_registers2[4];
Ritor1
parents:
diff changeset
87 int cpuid_80000004_registers2[4];
Ritor1
parents:
diff changeset
88 int field_E4;
Ritor1
parents:
diff changeset
89 };
Ritor1
parents:
diff changeset
90 #pragma pack(pop)