开发者

Show CPU Registers in VS2008 watch window

开发者 https://www.devze.com 2022-12-09 20:52 出处:网络
Is it possible to add CPU registers (RAX, EAX, flags, etc etc) with a specific syntax in a watch window so they are displayed like regular variables and printed in base-10 (or hex if Hexadecimal Displ

Is it possible to add CPU registers (RAX, EAX, flags, etc etc) with a specific syntax in a watch window so they are displayed like regular variables and printed in base-10 (or hex if Hexadecimal Display is on) ?

e.g:

if Registers window shows RAX = 00000000027A6468, adding %rax to watch would result in:

Name    Value       Type
%rax   开发者_Python百科 41575528    CPU Register

Thanks !


Pseudovariables


With VS2010 and higher there is a 'Registers' window (Debug->Windows->Registers). To see the flags and more registers (eg. MMX/SSE) just right click and enable them by the corresponding check mark since they are not shown by default. Some hints for the flags:

Overflow    OV        Direction   UP
Interrupt   EI        Sign        PL
Zero        ZR        Aux Carry   AC
Parity      PE        Carry       CY
0

精彩评论

暂无评论...
验证码 换一张
取 消