Show CPU Registers in VS2008 watch window

不打扰是莪最后的温柔 提交于 2019-12-25 04:32:21

问题


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    41575528    CPU Register

Thanks !


回答1:


Pseudovariables




回答2:


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


来源:https://stackoverflow.com/questions/1616189/show-cpu-registers-in-vs2008-watch-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!