Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing colour for CStatic Pin
David Crow28-Apr-08 4:04
David Crow28-Apr-08 4:04 
Generalhi i want to generate binary states in sorting order in terms of no of 1's plz help Pin
Member 465568525-Apr-08 3:39
Member 465568525-Apr-08 3:39 
GeneralRe: hi i want to generate binary states in sorting order in terms of no of 1's plz help PinPopular
David Crow25-Apr-08 3:55
David Crow25-Apr-08 3:55 
GeneralRe: hi i want to generate binary states in sorting order in terms of no of 1's plz help Pin
Nelek27-Apr-08 1:56
protectorNelek27-Apr-08 1:56 
Questionx64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 0:41
Maxwell Chen25-Apr-08 0:41 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Rajkumar R25-Apr-08 0:58
Rajkumar R25-Apr-08 0:58 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 1:15
Maxwell Chen25-Apr-08 1:15 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Rajkumar R25-Apr-08 2:48
Rajkumar R25-Apr-08 2:48 
"For more information, see the AMD documentation" from msdn

I was quickly seeing some documents I cannot find the MSR index equals E2h.
AFAIU, Three registers affects ECX, EAX, EDX.

The contents of ECX selects the MSR to be addressed by the
RDMSR and WRMSR instruction. The EDX and EAX registers contain the MSR values to be read or written; EDX—Upper 32 bits of MSR, EAX—Lower 32 bits of MSR. All MSRs are 64 bits wide. reference[^]

It seems valid fields in EAX for each MSR differs and you need to refer specifications, may be in your orginal code 16bit AX is masked and written back depends on the MSR on index E2h, I think intrinsic functions reads/writes the complete 64bit you need to take care it. I cannot comment more as i don't use Smile | :) .
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 5:05
Maxwell Chen25-Apr-08 5:05 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Mike Dimmick25-Apr-08 3:43
Mike Dimmick25-Apr-08 3:43 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 5:03
Maxwell Chen25-Apr-08 5:03 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Ozer Karaagac25-Apr-08 13:38
professionalOzer Karaagac25-Apr-08 13:38 
QuestionRe: x64 intrinsic function equivalent for inline assembly? Pin
bob1697225-Apr-08 3:08
bob1697225-Apr-08 3:08 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Mike Dimmick25-Apr-08 3:44
Mike Dimmick25-Apr-08 3:44 
Questiongdiplus problem Pin
trioum25-Apr-08 0:11
trioum25-Apr-08 0:11 
GeneralRe: gdiplus problem Pin
Rajkumar R25-Apr-08 0:29
Rajkumar R25-Apr-08 0:29 
GeneralRe: gdiplus problem Pin
Prasann Mayekar25-Apr-08 1:36
Prasann Mayekar25-Apr-08 1:36 
GeneralRe: gdiplus problem Pin
Hamid_RT25-Apr-08 3:04
Hamid_RT25-Apr-08 3:04 
Questionconnect dowsnt return error when i execute it with a disabled NIC?(windows sockets) Pin
izrafel24-Apr-08 23:28
izrafel24-Apr-08 23:28 
QuestionQuestion about downcast in c++ Pin
fantasy121524-Apr-08 23:23
fantasy121524-Apr-08 23:23 
GeneralRe: Question about downcast in c++ Pin
BadKarma24-Apr-08 23:57
BadKarma24-Apr-08 23:57 
QuestionRe: Question about downcast in c++ Pin
Rajkumar R25-Apr-08 0:00
Rajkumar R25-Apr-08 0:00 
QuestionWireless network message Pin
Ajay L D24-Apr-08 23:22
Ajay L D24-Apr-08 23:22 
GeneralRe: Wireless network message PinPopular
Rajkumar R25-Apr-08 0:34
Rajkumar R25-Apr-08 0:34 
Questionwhat about WM_CLOSE ,WM_DESTROY and WM_QUIT? Pin
xqhrs23224-Apr-08 23:13
xqhrs23224-Apr-08 23:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.