I can use 'r' to get the info of CPU register FLAG.
1.Can I understand by this?
eflags 0x00000082: id vip vif ac vm rf nt IOPL=0 of df if tf SF zf af pf cf
0x00000082= 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0
2.How to change the FLAG? By 'set' command?
<bochs:5> set eflags=0x03
:5: syntax error at 'eflags'
Thank you~
If the flag name is in capitals, then the flag is set. E.g. 'SF' means that sign flag is set, while 'sf' means it is not set. Did you mean this, or something else in your question?
The bochs manual says: "Currently only general purpose registers are supported, you may not change: eflags, eip, cs, ss, ds, es, fs, gs" (http://bochs.sourceforge.net/doc/docbook/user/internal-debugger.html#AEN3098).
Regards
User contributions licensed under CC BY-SA 3.0