mvp_tips/CPUID/CPUID/BasicCPU1EDX.cpp
BOOL CBasicCPU1EDX::OnSetActive()
    {
     CPUregs regs;
     GetAndReport(1, regs);

     EDX1b EDX;
     EDX.w = regs.EDX;

     CString s;

     
     SETWINDOWBIT(FPU, EDX, Intel);                         // 0
     SETWINDOWBIT(VME, EDX, Intel);                         // 1
     SETWINDOWBIT(DE,  EDX, Intel);                         // 2
     SETWINDOWBIT(PSE, EDX, Intel);                         // 3
     SETWINDOWBIT(TSC, EDX, Intel);                         // 4
     SETWINDOWBIT(MSR, EDX, Intel);                         // 5
     SETWINDOWBIT(PAE, EDX, Intel);                         // 6
     SETWINDOWBIT(MCE, EDX, Intel);                         // 7
     SETWINDOWBIT(CX8, EDX, Intel);                         // 8
     SETWINDOWBIT(APIC, EDX, Intel);                        // 9
     SETWINDOWBIT(Reserved1, EDX, Intel);                   // 10
     SETWINDOWBIT(SEP, EDX, Intel);                         // 11
     SETWINDOWBIT(MTRR, EDX, Intel);                        // 12
     SETWINDOWBIT(PGE, EDX, Intel);                         // 13
     SETWINDOWBIT(MCA, EDX, Intel);                         // 14
     SETWINDOWBIT(CMOV, EDX, Intel);                        // 15
     SETWINDOWBIT(PAT, EDX, Intel);                         // 16
     SETWINDOWBIT(PSE36, EDX, Intel);                       // 17
                                                            // 18: subclas
     SETWINDOWBIT(CFLSH, EDX, Intel);                       // 19
                                                            // 20: subclass
                                                            // 21: subclass
                                                            // 22: subclass
     SETWINDOWBIT(MMX, EDX, Intel);                         // 23
     SETWINDOWBIT(FXSR, EDX, Intel);                        // 24
     SETWINDOWBIT(SSE, EDX, Intel);                         // 25
     SETWINDOWBIT(SSE2, EDX, Intel);                        // 26
     SETWINDOWBIT(HTT, EDX, Intel);                         // 28
                                                            // 29: subclass
                                                            // 30: subclass
                                                            // 31: subclass
     return CScrollableCaptionsParent::OnSetActive();
    }
/****************************************************************************
*                         CBasicCPU1EDX::OnSetActive
* Result: BOOL
*       TRUE, always
* Effect: 
*       Initializes the information by reading the CPU code
****************************************************************************/
:OnSetActive
Result: BOOL
TRUE, always
Effect:
Initializes the information by reading the CPU code
: OnSetActive Result : BOOL TRUE always Effect : Initializes the information by reading the CPU code
BOOL CBasicCPU1EDX::OnSetActive()
    {
     CPUregs regs;
     GetAndReport(1, regs);
     EDX1b EDX;
     EDX.w = regs.EDX;
     CString s;
     SETWINDOWBIT(FPU, EDX, Intel);                         
     SETWINDOWBIT(VME, EDX, Intel);                         
     SETWINDOWBIT(DE,  EDX, Intel);                         
     SETWINDOWBIT(PSE, EDX, Intel);                         
     SETWINDOWBIT(TSC, EDX, Intel);                         
     SETWINDOWBIT(MSR, EDX, Intel);                         
     SETWINDOWBIT(PAE, EDX, Intel);                         
     SETWINDOWBIT(MCE, EDX, Intel);                         
     SETWINDOWBIT(CX8, EDX, Intel);                         
     SETWINDOWBIT(APIC, EDX, Intel);                        
     SETWINDOWBIT(Reserved1, EDX, Intel);                   0
     SETWINDOWBIT(SEP, EDX, Intel);                         1
     SETWINDOWBIT(MTRR, EDX, Intel);                        2
     SETWINDOWBIT(PGE, EDX, Intel);                         3
     SETWINDOWBIT(MCA, EDX, Intel);                         4
     SETWINDOWBIT(CMOV, EDX, Intel);                        5
     SETWINDOWBIT(PAT, EDX, Intel);                         6
     SETWINDOWBIT(PSE36, EDX, Intel);                       7
                                                            8: subclas
     SETWINDOWBIT(CFLSH, EDX, Intel);                       9
                                                            0: subclass
                                                            1: subclass
                                                            2: subclass
     SETWINDOWBIT(MMX, EDX, Intel);                         3
     SETWINDOWBIT(FXSR, EDX, Intel);                        4
     SETWINDOWBIT(SSE, EDX, Intel);                         5
     SETWINDOWBIT(SSE2, EDX, Intel);                        6
     SETWINDOWBIT(HTT, EDX, Intel);                         8
                                                            9: subclass
                                                            0: subclass
                                                            1: subclass
     return CScrollableCaptionsParent::OnSetActive();
    }
BOOL CBasicCPU1EDX :: OnSetActive ( ) { CPUregs regs ; GetAndReport ( 1 , regs ) ; EDX1b EDX ; EDX . w = regs . EDX ; CString s ; SETWINDOWBIT ( FPU , EDX , Intel ) ; SETWINDOWBIT ( VME , EDX , Intel ) ; SETWINDOWBIT ( DE , EDX , Intel ) ; SETWINDOWBIT ( PSE , EDX , Intel ) ; SETWINDOWBIT ( TSC , EDX , Intel ) ; SETWINDOWBIT ( MSR , EDX , Intel ) ; SETWINDOWBIT ( PAE , EDX , Intel ) ; SETWINDOWBIT ( MCE , EDX , Intel ) ; SETWINDOWBIT ( CX8 , EDX , Intel ) ; SETWINDOWBIT ( APIC , EDX , Intel ) ; SETWINDOWBIT ( Reserved1 , EDX , Intel ) ; SETWINDOWBIT ( SEP , EDX , Intel ) ; SETWINDOWBIT ( MTRR , EDX , Intel ) ; SETWINDOWBIT ( PGE , EDX , Intel ) ; SETWINDOWBIT ( MCA , EDX , Intel ) ; SETWINDOWBIT ( CMOV , EDX , Intel ) ; SETWINDOWBIT ( PAT , EDX , Intel ) ; SETWINDOWBIT ( PSE36 , EDX , Intel ) ; SETWINDOWBIT ( CFLSH , EDX , Intel ) ; SETWINDOWBIT ( MMX , EDX , Intel ) ; SETWINDOWBIT ( FXSR , EDX , Intel ) ; SETWINDOWBIT ( SSE , EDX , Intel ) ; SETWINDOWBIT ( SSE2 , EDX , Intel ) ; SETWINDOWBIT ( HTT , EDX , Intel ) ; return CScrollableCaptionsParent :: OnSetActive ( ) ; }
CBasicCPU1EDX::OnSetActive
Result: BOOL
TRUE, always
Effect:
Initializes the information by reading the CPU code
CBasicCPU1EDX :: OnSetActive Result : BOOL TRUE always Effect : Initializes the information by reading the CPU code
// 0 // 1 // 2 // 3 // 4 // 5 // 6 // 7 // 8 // 9 // 10 // 11 // 12 // 13 // 14 // 15 // 16 // 17 // 18: subclas // 19 // 20: subclass // 21: subclass // 22: subclass // 23 // 24 // 25 // 26 // 28 // 29: subclass // 30: subclass // 31: subclass